blob: 55f5abba2216e79553da952ef247bc7e0e6f4cdd [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
Sai Gandham1eb66782018-03-30 14:07:11 -05008if ["$1" == ""]; then
Instrumental71037c32018-03-26 13:51:48 -07009 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