aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPamela Dragosh <pdragosh@research.att.com>2017-02-21 12:04:28 -0500
committerPamela Dragosh <pdragosh@research.att.com>2017-02-21 12:04:36 -0500
commitb174339050dbb77135253b19efc2dc8de2331127 (patch)
tree938222759be2e50a9385e45b3b65410d7f834b64
parent1e547280802c84c0d4fdad62f9b694b4843a424d (diff)
multiple tags
Change-Id: Ief97a59f7a0d1476baf403a1441dda41c37d1b40 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
-rw-r--r--docker_build.sh4
-rw-r--r--docker_verify.sh18
2 files changed, 20 insertions, 2 deletions
diff --git a/docker_build.sh b/docker_build.sh
index 5c9946f0..001a2c0d 100644
--- a/docker_build.sh
+++ b/docker_build.sh
@@ -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
index 00000000..6e424c91
--- /dev/null
+++ b/docker_verify.sh
@@ -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