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 |
Instrumental | bc299c0 | 2018-09-25 06:42:31 -0500 | [diff] [blame] | 8 | fi |
Instrumental | 9405361 | 2018-10-08 11:27:18 -0500 | [diff] [blame] | 9 | DOCKER=${DOCKER:-docker} |
Instrumental | bc299c0 | 2018-09-25 06:42:31 -0500 | [diff] [blame] | 10 | |
Instrumental | 7558731 | 2018-09-25 17:30:46 -0500 | [diff] [blame] | 11 | echo "Building aaf_cass Container for aaf_cass:$VERSION" |
Instrumental | bc299c0 | 2018-09-25 06:42:31 -0500 | [diff] [blame] | 12 | |
| 13 | DIR=$(pwd) |
| 14 | cd .. |
| 15 | sed -e 's/${AAF_VERSION}/'${VERSION}'/g' $DIR/Dockerfile.cass > Dockerfile |
| 16 | cd .. |
| 17 | cp -Rf sample/cass_data auth-cass/cass_data |
| 18 | cp sample/data/sample.identities.dat auth-cass |
| 19 | |
Instrumental | 9405361 | 2018-10-08 11:27:18 -0500 | [diff] [blame] | 20 | echo $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 |
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 | |