summaryrefslogtreecommitdiffstats
path: root/docker_build.sh
diff options
context:
space:
mode:
authorPamela Dragosh <pdragosh@research.att.com>2017-03-30 12:46:08 -0400
committerPamela Dragosh <pdragosh@research.att.com>2017-03-30 13:43:52 -0400
commit9bd4bf6ac4aa36b7c16ff002d5262e577f08c14f (patch)
tree7fc7de7f649c06e3af5bb38002d88e08d5a3cb18 /docker_build.sh
parent18882a02287cc431144612ac87a5a3473693c067 (diff)
update Dockerfile to onap
Change-Id: I9c5229cdc79a7dfc5f74d919c58aa579084fef55 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
Diffstat (limited to 'docker_build.sh')
-rwxr-xr-xdocker_build.sh32
1 files changed, 32 insertions, 0 deletions
diff --git a/docker_build.sh b/docker_build.sh
index cd86c629..cbce1082 100755
--- a/docker_build.sh
+++ b/docker_build.sh
@@ -56,11 +56,43 @@ for image in policy-os policy-nexus policy-db policy-base policy-drools policy-p
echo $TAGS
docker build --quiet $TAGS target/$image
+
+ if [ $? -ne 0 ]
+ then
+ echo "Docker build failed"
+ docker images
+ exit 1
+ fi
done
+docker images
+
for image in policy-nexus policy-db policy-drools policy-pe; do
echo "Pushing $image"
+
docker push ${DOCKER_REPOSITORY}/onap/policy/$image:latest
+
+ if [ $? -ne 0 ]
+ then
+ echo "Docker push failed"
+ exit 1
+
+ fi
+
docker push ${DOCKER_REPOSITORY}/onap/policy/$image:${MVN_MAJMIN_VERSION}-latest
+
+ if [ $? -ne 0 ]
+ then
+ echo "Docker push failed"
+ exit 1
+
+ fi
docker push ${DOCKER_REPOSITORY}/onap/policy/$image:${MVN_VERSION}-STAGING-${TIMESTAMP}
+
+ if [ $? -ne 0 ]
+ then
+ echo "Docker push failed"
+ exit 1
+
+ fi
done