aboutsummaryrefslogtreecommitdiffstats
path: root/controlloop/build
diff options
context:
space:
mode:
authorJorge Hernandez <jorge.hernandez-herrero@att.com>2019-03-15 00:23:28 -0500
committerJorge Hernandez <jorge.hernandez-herrero@att.com>2019-03-15 00:32:09 -0500
commit74783258249fd8793a7ea865880060c7ef330b3e (patch)
tree8ebb2d27f81178460566d5d90d85ca703d79c097 /controlloop/build
parent9be9d1e3486d03c13b438dc814376e6832410f8e (diff)
Baking "runtime" software into image
Change-Id: I329596e6c23283cc4c31d689c621d7b4d1a298d7 Issue-ID: POLICY-1560 Signed-off-by: Jorge Hernandez <jorge.hernandez-herrero@att.com>
Diffstat (limited to 'controlloop/build')
-rw-r--r--controlloop/build/docker-cl9
1 files changed, 8 insertions, 1 deletions
diff --git a/controlloop/build/docker-cl b/controlloop/build/docker-cl
index 6c1d65fbf..7fd0c53a8 100644
--- a/controlloop/build/docker-cl
+++ b/controlloop/build/docker-cl
@@ -45,6 +45,8 @@ function build {
tags="${tags} --tag ${tag}"
done
+ chmod 755 "${IMAGE_PATH}"/*.sh
+
(
set -x;
docker pull "${DOCKER_PULL_REPOSITORY}"/onap/policy-drools:"${MAJOR_MINOR_VERSION}"-latest
@@ -75,7 +77,12 @@ function push {
return 1
fi
- (set -x; docker push ${tag})
+ (
+ set -x;
+ for tag in "$@"; do
+ docker push "${tag}"
+ done
+ )
if [[ $? != 0 ]]; then
echo -e "\nERROR: docker push\n"