diff options
Diffstat (limited to 'docker_build.sh')
-rw-r--r-- | docker_build.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/docker_build.sh b/docker_build.sh new file mode 100644 index 00000000..c5174565 --- /dev/null +++ b/docker_build.sh @@ -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 |