f26d73a5926d2285383895e2ffaa6d8c08439806
[aaf/authz.git] / auth / auth-cass / docker / dbuild.sh
1 #!/bin/bash
2
3 # Build AAF Cass Docker Script locally
4 #
5 # Pull in AAF Env Variables from AAF install
6 if [ -e ../../docker/d.props ]; then
7   . ../../docker/d.props
8 else
9   . ../../docker/d.props.init
10 fi
11
12 echo "Building aaf_cass Container for aaf_cass:$VERSION"
13
14 DIR=$(pwd)
15 cd ..
16 sed -e 's/${AAF_VERSION}/'${VERSION}'/g' $DIR/Dockerfile.cass > Dockerfile
17 cd ..
18 cp -Rf sample/cass_data auth-cass/cass_data
19 cp sample/data/sample.identities.dat auth-cass
20
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
24 cd -
25 rm Dockerfile
26 rm -Rf cass_data
27 rm sample.identities.dat
28 cd $DIR
29