blob: f483557cef59ccce70c38dbd39bb45b8ca78f31b [file] [log] [blame]
Instrumentalbc299c02018-09-25 06:42:31 -05001#!/bin/bash
2#
Instrumental4467ffa2018-09-25 14:25:34 -05003# Build AAF Cass Docker Script locally
Instrumentalbc299c02018-09-25 06:42:31 -05004#
5# Pull in AAF Env Variables from AAF install
6if [ -e ../../docker/d.props ]; then
7 . ../../docker/d.props
Instrumentalbc299c02018-09-25 06:42:31 -05008fi
Instrumental94053612018-10-08 11:27:18 -05009DOCKER=${DOCKER:-docker}
Instrumentalbc299c02018-09-25 06:42:31 -050010
Instrumental75587312018-09-25 17:30:46 -050011echo "Building aaf_cass Container for aaf_cass:$VERSION"
Instrumentalbc299c02018-09-25 06:42:31 -050012
13DIR=$(pwd)
14cd ..
15sed -e 's/${AAF_VERSION}/'${VERSION}'/g' $DIR/Dockerfile.cass > Dockerfile
16cd ..
17cp -Rf sample/cass_data auth-cass/cass_data
18cp sample/data/sample.identities.dat auth-cass
19
Instrumental94053612018-10-08 11:27:18 -050020echo $DOCKER build -t ${ORG}/${PROJECT}/aaf_cass:${VERSION} auth-cass
21$DOCKER build -t ${ORG}/${PROJECT}/aaf_cass:${VERSION} auth-cass
22$DOCKER tag ${ORG}/${PROJECT}/aaf_cass:${VERSION} ${DOCKER_REPOSITORY}/${ORG}/${PROJECT}/aaf_cass:${VERSION}
23$DOCKER tag ${ORG}/${PROJECT}/aaf_cass:${VERSION} ${DOCKER_REPOSITORY}/${ORG}/${PROJECT}/aaf_cass:latest
Instrumental75587312018-09-25 17:30:46 -050024
Instrumentalbc299c02018-09-25 06:42:31 -050025cd -
26rm Dockerfile
27rm -Rf cass_data
28rm sample.identities.dat
29cd $DIR
30