blob: aeef32939584f516b911dcfa2a01bb92589ec7c5 [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
8else
9 . ../../docker/d.props.init
10fi
11
Instrumental75587312018-09-25 17:30:46 -050012echo "Building aaf_cass Container for aaf_cass:$VERSION"
Instrumentalbc299c02018-09-25 06:42:31 -050013
14DIR=$(pwd)
15cd ..
16sed -e 's/${AAF_VERSION}/'${VERSION}'/g' $DIR/Dockerfile.cass > Dockerfile
17cd ..
18cp -Rf sample/cass_data auth-cass/cass_data
19cp sample/data/sample.identities.dat auth-cass
20
21docker build -t ${ORG}/${PROJECT}/aaf_cass:${VERSION} auth-cass
Instrumental75587312018-09-25 17:30:46 -050022docker tag ${ORG}/${PROJECT}/aaf_cass:${VERSION} ${DOCKER_REPOSITORY}/${ORG}/${PROJECT}/aaf_cass:${VERSION}
Instrumental08e93402018-10-03 08:38:52 -050023docker 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