Fix shs for REPO 87/60987/1
authorInstrumental <jonathan.gathman@att.com>
Thu, 16 Aug 2018 22:22:45 +0000 (17:22 -0500)
committerInstrumental <jonathan.gathman@att.com>
Thu, 16 Aug 2018 22:22:51 +0000 (17:22 -0500)
Issue-ID: AAF-419
Change-Id: I2cec912c935a28c818ad4358cd236c153de54c30
Signed-off-by: Instrumental <jonathan.gathman@att.com>
auth/docker/aaf.sh
auth/docker/components [new file with mode: 0644]
auth/docker/d.props.init
auth/docker/dclean.sh
auth/docker/dpush.sh
auth/docker/drun.sh
auth/docker/dstart.sh
auth/docker/dstop.sh

index 441cf2b..a54c54a 100644 (file)
@@ -12,5 +12,5 @@ docker run \
     --env LATITUDE=${LATITUDE} \
     --env LONGITUDE=${LONGITUDE} \
     --name aaf_config_$USER \
-    ${ORG}/${PROJECT}/aaf_config:${VERSION} \
+    $PREFIX${ORG}/${PROJECT}/aaf_config:${VERSION} \
     /bin/bash "$@"
diff --git a/auth/docker/components b/auth/docker/components
new file mode 100644 (file)
index 0000000..0a4a66a
--- /dev/null
@@ -0,0 +1,7 @@
+service
+locate
+oauth
+gui
+fs
+cm
+hello
index 54a83b7..1394c76 100644 (file)
@@ -4,6 +4,8 @@ PROJECT=aaf
 DOCKER_REPOSITORY=nexus3.onap.org:10003
 VERSION=2.1.2-SNAPSHOT
 CONF_ROOT_DIR=/opt/app/osaaf
+# For local builds, set PREFIX=   
+PREFIX="$DOCKER_REPOSITORY/"
 
 # Local Env info
 HOSTNAME=aaf.osaaf.org
index b502c02..d83a132 100644 (file)
@@ -3,9 +3,9 @@
 . ./d.props
 
 if [ "$1" == "" ]; then
-    AAF_COMPONENTS=$(ls ../aaf_${VERSION}/bin | grep -v '\.')
+    AAF_COMPONENTS="$(cat components) config core agent"
 else
-    AAF_COMPONENTS=$1
+    AAF_COMPONENTS="$@"
 fi
 
 docker image rm $ORG/$PROJECT/aaf_agent:${VERSION}
@@ -15,5 +15,9 @@ docker image rm $ORG/$PROJECT/aaf_core:${VERSION}
 echo "Y" | docker container prune
 for AAF_COMPONENT in ${AAF_COMPONENTS}; do
     docker image rm $ORG/$PROJECT/aaf_$AAF_COMPONENT:${VERSION}
+    if [ "$PREFIX" = "" ]; then
+      docker image rm $DOCKER_REPOSITORY/$ORG/$PROJECT/aaf_$AAF_COMPONENT:${VERSION}
+      docker image rm $DOCKER_REPOSITORY/$ORG/$PROJECT/aaf_$AAF_COMPONENT:latest
+    fi
 done
 echo "Y" | docker image prune
index 55d2d6f..f6ea970 100644 (file)
@@ -4,12 +4,13 @@
 # Pull in Variables from d.props
 . ./d.props
 
-if ["$1" == ""]; then
-  AAF_COMPONENTS="config agent core `ls ../aaf_*HOT/bin | grep -v '\.'`"
+f [ "$1" == "" ]; then
+    AAF_COMPONENTS=$(cat components)
 else
-  AAF_COMPONENTS=$1
+    AAF_COMPONENTS="$@"
 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}:${VERSION}
index 8cedbcc..04f5b32 100644 (file)
@@ -12,7 +12,7 @@ fi
 . ./cass.props
 
 if [ "$1" == "" ]; then
-    AAF_COMPONENTS=$(ls -r ../aaf_${VERSION}/bin | grep -v '\.')
+    AAF_COMPONENTS=$(cat components)
 else
     AAF_COMPONENTS="$@"
 fi
@@ -57,5 +57,5 @@ for AAF_COMPONENT in ${AAF_COMPONENTS}; do
         ${LINKS} \
         --publish $PORTMAP \
         --mount 'type=volume,src=aaf_config,dst='$CONF_ROOT_DIR',volume-driver=local' \
-        ${ORG}/${PROJECT}/aaf_${AAF_COMPONENT}:${VERSION}
+        ${PREFIX}${ORG}/${PROJECT}/aaf_${AAF_COMPONENT}:${VERSION}
 done
index 4c0a46f..6a29785 100644 (file)
@@ -3,7 +3,7 @@
 . ./d.props
 
 if [ "$1" == "" ]; then
-    AAF_COMPONENTS=$(ls -r ../aaf_${VERSION}/bin | grep -v '\.')
+    AAF_COMPONENTS=$(cat components)
 else
     AAF_COMPONENTS="$@"
 fi
index c6e1cfe..acec6c7 100644 (file)
@@ -3,7 +3,7 @@
 . ./d.props
 
 if [ "$1" == "" ]; then
-    AAF_COMPONENTS=$(ls ../aaf_${VERSION}/bin | grep -v '\.')
+    AAF_COMPONENTS=$(cat components)
 else
     AAF_COMPONENTS="$@"
 fi