Instrumental | 97083ef | 2018-04-25 15:22:38 -0500 | [diff] [blame] | 1 | #!/bin/bash |
Sai Gandham | 6611834 | 2018-04-04 15:33:05 -0500 | [diff] [blame] | 2 | # |
| 3 | # Docker Building Script. Reads all the components generated by install, on per-version basis |
| 4 | # |
Instrumental | 924b18d | 2018-04-05 20:17:18 -0500 | [diff] [blame] | 5 | # Pull in Variables from d.props |
Instrumental | f482ea0 | 2018-04-10 15:03:24 -0500 | [diff] [blame] | 6 | . ./d.props |
Sai Gandham | 6611834 | 2018-04-04 15:33:05 -0500 | [diff] [blame] | 7 | # TODO add ability to do DEBUG settings |
| 8 | |
| 9 | if ["$1" == ""]; then |
| 10 | AAF_COMPONENTS=`ls ../aaf_*HOT/bin | grep -v '\.'` |
| 11 | else |
| 12 | AAF_COMPONENTS=$1 |
| 13 | fi |
| 14 | |
| 15 | for AAF_COMPONENT in ${AAF_COMPONENTS}; do |
Instrumental | 924b18d | 2018-04-05 20:17:18 -0500 | [diff] [blame] | 16 | echo Building aaf_$AAF_COMPONENT... |
Sai Gandham | 6611834 | 2018-04-04 15:33:05 -0500 | [diff] [blame] | 17 | 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} |
Sai Gandham | fb319cb | 2018-05-29 16:27:39 +0000 | [diff] [blame] | 20 | docker tag ${DOCKER_REPOSITORY}/${ORG}/${PROJECT}/aaf_${AAF_COMPONENT}:${VERSION} ${DOCKER_REPOSITORY}/${ORG}/${PROJECT}/aaf_${AAF_COMPONENT}:${OLD_VERSION} |
Sai Gandham | b85687d | 2018-06-05 21:19:43 +0000 | [diff] [blame^] | 21 | docker tag ${DOCKER_REPOSITORY}/${ORG}/${PROJECT}/aaf_${AAF_COMPONENT}:${VERSION} ${DOCKER_REPOSITORY}/${ORG}/${PROJECT}/aaf_${AAF_COMPONENT}:${NEW_VERSION} |
Sai Gandham | 6611834 | 2018-04-04 15:33:05 -0500 | [diff] [blame] | 22 | rm aaf_${VERSION}/Dockerfile |
| 23 | cd - |
| 24 | done |
| 25 | |
| 26 | |