Create Helm Instantiation
[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 docker tag ${ORG}/${PROJECT}/aaf_cass:${VERSION} ${DOCKER_REPOSITORY}/${ORG}/${PROJECT}/aaf_cass:latest
24
25 cd -
26 rm Dockerfile
27 rm -Rf cass_data
28 rm sample.identities.dat
29 cd $DIR
30