summaryrefslogtreecommitdiffstats
path: root/auth/auth-cass/docker/dbuild.sh
diff options
context:
space:
mode:
authorInstrumental <jgonap@stl.gathman.org>2020-03-10 07:55:21 -0500
committerInstrumental <jgonap@stl.gathman.org>2020-03-10 07:55:29 -0500
commit28d2e7a6daa59749f6fefa302840943961c3ba9e (patch)
tree5be79935e39ac315a67ef3b0206a67614bcb9d29 /auth/auth-cass/docker/dbuild.sh
parentab6dc4c77a4dd29ae4e31144abb568dd64bc015b (diff)
Container 2.1.18c
Issue-ID: AAF-1081 Signed-off-by: Instrumental <jgonap@stl.gathman.org> Change-Id: Idfbb108082e1037ad93b9e34e4b389f210669157
Diffstat (limited to 'auth/auth-cass/docker/dbuild.sh')
-rw-r--r--auth/auth-cass/docker/dbuild.sh18
1 files changed, 15 insertions, 3 deletions
diff --git a/auth/auth-cass/docker/dbuild.sh b/auth/auth-cass/docker/dbuild.sh
index fb9bc8e0..7e2ac7c5 100644
--- a/auth/auth-cass/docker/dbuild.sh
+++ b/auth/auth-cass/docker/dbuild.sh
@@ -25,6 +25,19 @@ if [ -e ../../docker/d.props ]; then
. ../../docker/d.props
fi
DOCKER=${DOCKER:-docker}
+
+function SCP() {
+ SANS=${1/-SNAPSHOT/}
+ echo $1 = $SANS
+ if [ -e $SANS ]; then
+ cp $SANS $2
+ else
+
+ ln $1 $SANS
+ cp $SANS $2
+ rm $SANS
+ fi
+}
echo "$0: Building aaf_cass Container for aaf_cass:$VERSION"
@@ -43,11 +56,10 @@ sed -e 's/${AAF_VERSION}/'${VERSION/-SNAPSHOT/}'/g' \
-e 's/${REGISTRY}/'${DOCKER_PULL_REGISTRY}'/g' \
$DIR/Dockerfile.cass > Dockerfile
cd ..
+pwd
cp -Rf sample/cass_data auth-cass/cass_data
cp sample/data/sample.identities.dat auth-cass
-pwd
-cp auth-batch/target/aaf-auth-batch-$VERSION-full.jar auth-cass/aaf-auth-batch-${VERSION/-SNAPSHOT/}-full.jar
-ls -l auth-cass/*full.jar
+SCP auth-batch/target/aaf-auth-batch-$VERSION-full.jar auth-cass
echo "$0: $DOCKER build -t ${ORG}/${PROJECT}/aaf_cass:${VERSION} auth-cass"
$DOCKER build -t ${ORG}/${PROJECT}/aaf_cass:${VERSION} auth-cass