aboutsummaryrefslogtreecommitdiffstats
path: root/docker_merge.sh
diff options
context:
space:
mode:
authorPamela Dragosh <pdragosh@research.att.com>2017-02-23 10:37:49 -0500
committerPamela Dragosh <pdragosh@research.att.com>2017-02-23 11:18:20 -0500
commit6f91e0ba8db761cc8ae95c8284091d4fef5e2b48 (patch)
tree57683f66b26beaeda94274dddab68a36c71af744 /docker_merge.sh
parente638c62f002a339536a6a76515ed8a238b135d90 (diff)
cleaning up - better verify/merge
Change-Id: Ief6428eefa6faed69236c9c481e500a0e7948e0b Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
Diffstat (limited to 'docker_merge.sh')
-rwxr-xr-xdocker_merge.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/docker_merge.sh b/docker_merge.sh
new file mode 100755
index 00000000..65019782
--- /dev/null
+++ b/docker_merge.sh
@@ -0,0 +1,20 @@
+#!/bin/bash
+#
+echo '============== STARTING SCRIPT TO BUILD DOCKER IMAGES ================='
+
+DOCKER_REPOSITORY=nexus3.openecomp.org:10003
+DOCKER_VERSION=latest
+
+export DOCKER_REPOSITORY
+export DOCKER_VERSION
+
+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