multiple tags 13/1113/1
authorPamela Dragosh <pdragosh@research.att.com>
Tue, 21 Feb 2017 17:04:28 +0000 (12:04 -0500)
committerPamela Dragosh <pdragosh@research.att.com>
Tue, 21 Feb 2017 17:04:36 +0000 (12:04 -0500)
Change-Id: Ief97a59f7a0d1476baf403a1441dda41c37d1b40
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
docker_build.sh
docker_verify.sh [new file with mode: 0644]

index 5c9946f..001a2c0 100644 (file)
@@ -13,11 +13,11 @@ for image in policy-os policy-nexus policy-db policy-base policy-drools policy-p
     echo "Building $image"
     mkdir -p target/$image
     cp $image/* target/$image
-    docker build --quiet --tag openecomp/policy/$image:${DOCKER_VERSION} target/$image
+    docker build --quiet --tag openecomp/policy/$image:${DOCKER_VERSION} --tag ${DOCKER_REPOSITORY}/openecomp/policy/$image:${DOCKER_VERSION} target/$image
     docker images
 done
 
 for image in policy-nexus policy-db policy-drools policy-pe; do
     echo "Pushing $image"
-    docker push openecomp/policy/$image:${DOCKER_VERSION}
+    docker push ${DOCKER_REPOSITORY}/openecomp/policy/$image:${DOCKER_VERSION}
 done
diff --git a/docker_verify.sh b/docker_verify.sh
new file mode 100644 (file)
index 0000000..6e424c9
--- /dev/null
@@ -0,0 +1,18 @@
+#!/bin/bash
+#
+echo '============== STARTING SCRIPT TO BUILD DOCKER IMAGES ================='
+
+
+DOCKER_REPOSITORY=nexus3.openecomp.org:10003
+DOCKER_VERSION=latest
+
+cp policy-pe/* target/policy-pe/
+cp policy-drools/* target/policy-drools/
+
+for image in policy-os policy-nexus policy-db policy-base policy-drools policy-pe ; do
+    echo "Building $image"
+    mkdir -p target/$image
+    cp $image/* target/$image
+    docker build --quiet --tag openecomp/policy/$image:${DOCKER_VERSION} --tag ${DOCKER_REPOSITORY}/openecomp/policy/$image:${DOCKER_VERSION} target/$image
+    docker images
+done