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
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
echo $TAGS
docker build --quiet $TAGS target/$image
+
+ if [ $? -ne 0 ]
+ then
+ echo "Docker build failed"
+ docker images
+ exit 1
+ fi
done
docker images
-FROM openecomp/policy/policy-os
+FROM onap/policy/policy-os
# install MariaDB client
-FROM openecomp/policy/policy-os
+FROM onap/policy/policy-os
RUN \
apt-get clean && \
-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
-FROM openecomp/policy/policy-os
+FROM onap/policy/policy-os
# note that in following command sequence, wget exit status is 1 even on success,
-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