summaryrefslogtreecommitdiffstats
path: root/controlloop/build/docker-cl
diff options
context:
space:
mode:
authorjhh <jorge.hernandez-herrero@att.com>2019-04-26 12:12:47 -0500
committerjhh <jorge.hernandez-herrero@att.com>2019-04-26 12:12:47 -0500
commit74f5aea3da13f47573bff055397c5bbe5e1db55f (patch)
tree04b9b58d0f9651be1151adcb7e464de54a57a57f /controlloop/build/docker-cl
parente32d0fac919c8cc5657496a16c300877bd29621e (diff)
New BUILD_VERSION needed as fixed in parent image
BUILD_VERSION could not be used in ENV variable as it is cooked in the base image itself. Need to create a new one to reflect the drools build to get by. Some minor additional changes as to exit shell when a docker command fails for clarity when executing these operations is added as well. Change-Id: Ic8dfc03bc0563c088d55b1991a0f8c431ab0fab2 Issue-ID: INT-998 Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Diffstat (limited to 'controlloop/build/docker-cl')
-rw-r--r--controlloop/build/docker-cl2
1 files changed, 2 insertions, 0 deletions
diff --git a/controlloop/build/docker-cl b/controlloop/build/docker-cl
index 7fd0c53a8..6a5363366 100644
--- a/controlloop/build/docker-cl
+++ b/controlloop/build/docker-cl
@@ -48,6 +48,7 @@ function build {
chmod 755 "${IMAGE_PATH}"/*.sh
(
+ set -e
set -x;
docker pull "${DOCKER_PULL_REPOSITORY}"/onap/policy-drools:"${MAJOR_MINOR_VERSION}"-latest
docker tag "${DOCKER_PULL_REPOSITORY}"/onap/policy-drools:"${MAJOR_MINOR_VERSION}"-latest onap/policy-drools:"${MAJOR_MINOR_VERSION}"-latest
@@ -78,6 +79,7 @@ function push {
fi
(
+ set -e;
set -x;
for tag in "$@"; do
docker push "${tag}"