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} |
| 20 | rm aaf_${VERSION}/Dockerfile |
| 21 | cd - |
| 22 | done |
| 23 | |
| 24 | |