blob: ed99ec99acf60105cf67b142f93fe179d032f616 [file] [log] [blame]
Instrumental97083ef2018-04-25 15:22:38 -05001#!/bin/bash
Sai Gandham66118342018-04-04 15:33:05 -05002#
3# Docker Building Script. Reads all the components generated by install, on per-version basis
4#
Instrumental924b18d2018-04-05 20:17:18 -05005# Pull in Variables from d.props
Instrumentalf482ea02018-04-10 15:03:24 -05006. ./d.props
Sai Gandham66118342018-04-04 15:33:05 -05007# TODO add ability to do DEBUG settings
8
9if ["$1" == ""]; then
10 AAF_COMPONENTS=`ls ../aaf_*HOT/bin | grep -v '\.'`
11else
12 AAF_COMPONENTS=$1
13fi
14
15for AAF_COMPONENT in ${AAF_COMPONENTS}; do
Instrumental924b18d2018-04-05 20:17:18 -050016 echo Building aaf_$AAF_COMPONENT...
Sai Gandham66118342018-04-04 15:33:05 -050017 sed -e 's/${AAF_VERSION}/'${VERSION}'/g' -e 's/${AAF_COMPONENT}/'${AAF_COMPONENT}'/g' Dockerfile > ../aaf_${VERSION}/Dockerfile
18 cd ..
19 docker build -t ${DOCKER_REPOSITORY}/${ORG}/${PROJECT}/aaf_${AAF_COMPONENT}:${VERSION} aaf_${VERSION}
20 rm aaf_${VERSION}/Dockerfile
21 cd -
22done
23
24