Tag Image for Repo push in Script 03/60603/1
authorInstrumental <jonathan.gathman@att.com>
Tue, 14 Aug 2018 18:55:32 +0000 (13:55 -0500)
committerInstrumental <jonathan.gathman@att.com>
Tue, 14 Aug 2018 18:55:40 +0000 (13:55 -0500)
Issue-ID: AAF-433
Change-Id: Ifd25242465dd5d202400bafd814db445a01d24f7
Signed-off-by: Instrumental <jonathan.gathman@att.com>
auth/docker/.gitignore
auth/docker/Dockerfile.core
auth/docker/Dockerfile.ms
auth/docker/cass.props.init [new file with mode: 0644]
auth/docker/d.props.init
auth/docker/dbuild.sh
auth/docker/dpush.sh
auth/docker/drun.sh

index f644e05..47b48da 100644 (file)
@@ -1,3 +1,4 @@
 /local
 /d.props
 /aaf.props
+/cass.props
index c4e8a46..b54dce7 100644 (file)
@@ -7,4 +7,6 @@ LABEL version=${AAF_VERSION}
 
 COPY lib /opt/app/aaf/lib
 COPY bin /opt/app/aaf/bin
+COPY theme /opt/app/aaf/theme
+
 
index b8ef6d9..121bd06 100644 (file)
@@ -5,8 +5,6 @@ ENV VERSION=${AAF_VERSION}
 LABEL description="aaf_${AAF_COMPONENT}"
 LABEL version=${AAF_VERSION}
 
-COPY theme /opt/app/aaf/theme
-
 CMD ["/bin/bash","-c","/opt/app/aaf/bin/${AAF_COMPONENT}"]
 
 # For Debugging installation
diff --git a/auth/docker/cass.props.init b/auth/docker/cass.props.init
new file mode 100644 (file)
index 0000000..fc9bab4
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+CASS_HOST=cass.aaf.osaaf.org:<Cass IP>
index b0ba63d..54a83b7 100644 (file)
@@ -8,7 +8,6 @@ CONF_ROOT_DIR=/opt/app/osaaf
 # Local Env info
 HOSTNAME=aaf.osaaf.org
 HOST_IP=
-CASS_HOST=cass.aaf.osaaf.org:<Cass IP>
 
 # AAF Machine info
 AAF_ENV=DEV
index da0b9b6..e3d4942 100755 (executable)
@@ -45,6 +45,7 @@ for AAF_COMPONENT in ${AAF_COMPONENTS}; do
     sed -e 's/${AAF_VERSION}/'${VERSION}'/g' -e 's/${AAF_COMPONENT}/'${AAF_COMPONENT}'/g' Dockerfile.ms >../aaf_${VERSION}/Dockerfile
     cd ..
     docker build -t ${ORG}/${PROJECT}/aaf_${AAF_COMPONENT}:${VERSION} aaf_${VERSION}
+    docker tag ${ORG}/${PROJECT}/aaf_${AAF_COMPONENT}:${VERSION} ${DOCKER_REPOSITORY}/${ORG}/${PROJECT}/aaf_${AAF_COMPONENT}:${VERSION}
     rm aaf_${VERSION}/Dockerfile
     cd -
 done
index 761ae2a..6beae85 100644 (file)
@@ -11,8 +11,8 @@ else
 fi
 
 for AAF_COMPONENT in ${AAF_COMPONENTS}; do
-        docker push ${DOCKER_REPOSITORY}/${ORG}/${PROJECT}/aaf_${AAF_COMPONENT}:${OLD_VERSION}
+        docker push ${DOCKER_REPOSITORY}/${ORG}/${PROJECT}/aaf_${AAF_COMPONENT}:${OLD_VERSION}
         docker push ${DOCKER_REPOSITORY}/${ORG}/${PROJECT}/aaf_${AAF_COMPONENT}:${VERSION}
-        docker push ${DOCKER_REPOSITORY}/${ORG}/${PROJECT}/aaf_${AAF_COMPONENT}:${NEW_VERSION}
+        docker push ${DOCKER_REPOSITORY}/${ORG}/${PROJECT}/aaf_${AAF_COMPONENT}:${NEW_VERSION}
 
 done
index c62adfc..8cedbcc 100644 (file)
@@ -2,6 +2,15 @@
 # Pull in Variables from d.props
 . ./d.props
 
+# Only need Cassandra Link Info when initializing the container.
+if [ ! -e ./cass.props ]; then
+    cp cass.props.init cass.props
+    echo "Edit appropriate Cassandra Link Info into cass.props"
+    exit
+fi
+
+. ./cass.props
+
 if [ "$1" == "" ]; then
     AAF_COMPONENTS=$(ls -r ../aaf_${VERSION}/bin | grep -v '\.')
 else