Instrumental | bc299c0 | 2018-09-25 06:42:31 -0500 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | # |
Instrumental | 4467ffa | 2018-09-25 14:25:34 -0500 | [diff] [blame] | 3 | # Build AAF Cass Docker Script locally |
Instrumental | bc299c0 | 2018-09-25 06:42:31 -0500 | [diff] [blame] | 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 | |
Instrumental | 7558731 | 2018-09-25 17:30:46 -0500 | [diff] [blame] | 12 | echo "Building aaf_cass Container for aaf_cass:$VERSION" |
Instrumental | bc299c0 | 2018-09-25 06:42:31 -0500 | [diff] [blame] | 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 |
Instrumental | 7558731 | 2018-09-25 17:30:46 -0500 | [diff] [blame] | 22 | docker tag ${ORG}/${PROJECT}/aaf_cass:${VERSION} ${DOCKER_REPOSITORY}/${ORG}/${PROJECT}/aaf_cass:${VERSION} |
Instrumental | 08e9340 | 2018-10-03 08:38:52 -0500 | [diff] [blame] | 23 | docker tag ${ORG}/${PROJECT}/aaf_cass:${VERSION} ${DOCKER_REPOSITORY}/${ORG}/${PROJECT}/aaf_cass:latest |
Instrumental | 7558731 | 2018-09-25 17:30:46 -0500 | [diff] [blame] | 24 | |
Instrumental | bc299c0 | 2018-09-25 06:42:31 -0500 | [diff] [blame] | 25 | cd - |
| 26 | rm Dockerfile |
| 27 | rm -Rf cass_data |
| 28 | rm sample.identities.dat |
| 29 | cd $DIR |
| 30 | |