update Dockerfile to onap 51/2751/3
authorPamela Dragosh <pdragosh@research.att.com>
Thu, 30 Mar 2017 16:46:08 +0000 (12:46 -0400)
committerPamela Dragosh <pdragosh@research.att.com>
Thu, 30 Mar 2017 17:43:52 +0000 (13:43 -0400)
Change-Id: I9c5229cdc79a7dfc5f74d919c58aa579084fef55
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
docker_build.sh
docker_merge.sh
docker_verify.sh
policy-base/Dockerfile
policy-db/Dockerfile
policy-drools/Dockerfile
policy-nexus/Dockerfile
policy-pe/Dockerfile

index cd86c62..cbce108 100755 (executable)
@@ -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
index 2960f5c..bbc0ca9 100755 (executable)
@@ -56,13 +56,35 @@ 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
+
 #
 # Push images
 #
 for image in policy-nexus policy-db policy-drools policy-pe; do
     echo "Pushing $image"
     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}-${TIMESTAMP}
+
+    if [ $? -ne 0 ]
+    then
+        echo "Docker push failed"
+        exit 1
+    fi
 done
index 3037e24..cdb42e9 100755 (executable)
@@ -59,6 +59,13 @@ 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
index 53ae4c1..e6c4b1f 100644 (file)
@@ -1,4 +1,4 @@
-FROM openecomp/policy/policy-os
+FROM onap/policy/policy-os
 
 
 # install MariaDB client
index 5bdfd70..002313c 100644 (file)
@@ -1,4 +1,4 @@
-FROM openecomp/policy/policy-os
+FROM onap/policy/policy-os
 
 RUN \
        apt-get clean && \
index 920920e..5a5c0ad 100644 (file)
@@ -1,4 +1,4 @@
-FROM openecomp/policy/policy-base
+FROM onap/policy/policy-base
 
 RUN mkdir -p /opt/app/policy /tmp/policy-install && chown policy /opt/app/policy /tmp/policy-install
 WORKDIR /tmp/policy-install
index 6bfd01d..ab3e345 100644 (file)
@@ -1,4 +1,4 @@
-FROM openecomp/policy/policy-os
+FROM onap/policy/policy-os
 
 
 # note that in following command sequence, wget exit status is 1 even on success,
index 2f881b9..fe56808 100644 (file)
@@ -1,4 +1,4 @@
-FROM openecomp/policy/policy-base
+FROM onap/policy/policy-base
 
 RUN mkdir -p /opt/app/policy /tmp/policy-install && chown policy /opt/app/policy /tmp/policy-install