moving docker build to local 93/1093/1
authorPamela Dragosh <pdragosh@research.att.com>
Tue, 21 Feb 2017 14:05:08 +0000 (09:05 -0500)
committerPamela Dragosh <pdragosh@research.att.com>
Tue, 21 Feb 2017 14:05:15 +0000 (09:05 -0500)
Change-Id: Id39721049742404842e63cd56989143210059150
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
docker_build.sh [new file with mode: 0644]

diff --git a/docker_build.sh b/docker_build.sh
new file mode 100644 (file)
index 0000000..c517456
--- /dev/null
@@ -0,0 +1,20 @@
+#!/bin/bash
+#
+echo '============== STARTING SCRIPT TO BUILD DOCKER IMAGES ================='
+
+
+DOCKER_REPOSITORY=nexus3.openecomp.org:10003
+DOCKER_VERSION=latest
+
+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 ${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 ${DOCKER_REPOSITORY}/openecomp/policy/$image:${DOCKER_VERSION}
+done