Instrumental | 71037c3 | 2018-03-26 13:51:48 -0700 | [diff] [blame^] | 1 | # |
| 2 | # Docker Building Script. Reads all the components generated by install, on per-version basis |
| 3 | # |
| 4 | |
| 5 | VERSION=2.1.0-SNAPSHOT |
| 6 | # TODO add ability to do DEBUG settings |
| 7 | |
| 8 | if [ "$1" == "" ]; then |
| 9 | AAF_COMPONENTS=`ls ../aaf_*HOT/bin | grep -v '\.'` |
| 10 | else |
| 11 | AAF_COMPONENTS=$1 |
| 12 | fi |
| 13 | |
| 14 | for AAF_COMPONENT in ${AAF_COMPONENTS}; do |
| 15 | sed -e 's/${AAF_VERSION}/'${VERSION}'/g' -e 's/${AAF_COMPONENT}/'${AAF_COMPONENT}'/g' Dockerfile > ../aaf_${VERSION}/Dockerfile |
| 16 | cd .. |
| 17 | docker build -t onap/aaf/aaf_${AAF_COMPONENT}:${VERSION} aaf_${VERSION} |
| 18 | rm aaf_${VERSION}/Dockerfile |
| 19 | cd - |
| 20 | done |
| 21 | |
| 22 | |