need DOCKER_REPOSITORY set 91/891/2
authorPamela Dragosh <pdragosh@research.att.com>
Mon, 20 Feb 2017 01:52:22 +0000 (20:52 -0500)
committerPamela Dragosh <pdragosh@research.att.com>
Mon, 20 Feb 2017 03:36:26 +0000 (22:36 -0500)
Change-Id: I6937a3e3ca7610ef16e7ee31ec387f2f0ca6fafb
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
jjb/policy/include-raw-docker.sh

index 642d8c2..a2e55be 100644 (file)
@@ -2,12 +2,17 @@
 #
 echo '============== STARTING SCRIPT TO BUILD DOCKER IMAGES ================='
 
+
+DOCKER_REPOSITORIES="nexus3.openecomp.org:10001 \
+                   nexus3.openecomp.org:10002 \
+                   nexus3.openecomp.org:10003"
+
 for image in policy-os policy-nexus policy-db policy-base policy-drools policy-pe ; do
     mkdir -p target/$image
     cp $image/* target/$image
-    docker build --quiet --tag ${DOCKER_REPOSITORY}/policy/$image target/$image
+    docker build --quiet --tag ${DOCKER_REPOSITORY}/policy:$image target/$image
 done
 
 for image in policy-nexus policy-db policy-drools policy-pe; do
-    docker push ${DOCKER_REPOSITORY}/policy/$image
+    docker push ${DOCKER_REPOSITORY}/policy:$image
 done