blob: f5b4deeb721d6ad7623b30c96bf1090f33399901 [file] [log] [blame]
Instrumental97083ef2018-04-25 15:22:38 -05001#!/bin/bash
Sai Gandham66118342018-04-04 15:33:05 -05002#
3# Docker Building Script. Reads all the components generated by install, on per-version basis
4#
Instrumental924b18d2018-04-05 20:17:18 -05005# Pull in Variables from d.props
Instrumentalf482ea02018-04-10 15:03:24 -05006. ./d.props
Sai Gandham66118342018-04-04 15:33:05 -05007# TODO add ability to do DEBUG settings
8
9if ["$1" == ""]; then
10 AAF_COMPONENTS=`ls ../aaf_*HOT/bin | grep -v '\.'`
11else
12 AAF_COMPONENTS=$1
13fi
14
15for AAF_COMPONENT in ${AAF_COMPONENTS}; do
Instrumental924b18d2018-04-05 20:17:18 -050016 echo Building aaf_$AAF_COMPONENT...
Sai Gandham66118342018-04-04 15:33:05 -050017 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 Gandhamfb319cb2018-05-29 16:27:39 +000020 docker tag ${DOCKER_REPOSITORY}/${ORG}/${PROJECT}/aaf_${AAF_COMPONENT}:${VERSION} ${DOCKER_REPOSITORY}/${ORG}/${PROJECT}/aaf_${AAF_COMPONENT}:${OLD_VERSION}
Sai Gandham66118342018-04-04 15:33:05 -050021 rm aaf_${VERSION}/Dockerfile
22 cd -
23done
24
25