blob: 15bc1b0eeabdd73bd2a11e5c587ce21826db2009 [file] [log] [blame]
Instrumental71037c32018-03-26 13:51:48 -07001#
2# Docker Building Script. Reads all the components generated by install, on per-version basis
3#
4
5VERSION=2.1.0-SNAPSHOT
6# TODO add ability to do DEBUG settings
7
8if [ "$1" == "" ]; then
9 AAF_COMPONENTS=`ls ../aaf_*HOT/bin | grep -v '\.'`
10else
11 AAF_COMPONENTS=$1
12fi
13
14for 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 -
20done
21
22