aboutsummaryrefslogtreecommitdiffstats
path: root/test/csit/scripts/policy/script1.sh
diff options
context:
space:
mode:
authormmis <michael.morris@ericsson.com>2018-03-06 16:54:14 +0000
committermmis <michael.morris@ericsson.com>2018-03-06 17:17:43 +0000
commit1b40e3b0df8bb02522c3397db7614d3f7dddd3a4 (patch)
tree62f9fa9b6ca258f5a654ee1f4ca9d5f4529b4634 /test/csit/scripts/policy/script1.sh
parentf6dbe2829b8ca19bfc0def871036c50642de7770 (diff)
Update policy script for new image structure
Policy docker image structure and the method for building them have changed and hence the script to build and deploy the images for the CSIT tests needs to be updated accordingly Issue-ID: POLICY-652 Change-Id: I2ecde1906c1baa74bbab20711ac521f9b0a5b5a8 Signed-off-by: mmis <michael.morris@ericsson.com>
Diffstat (limited to 'test/csit/scripts/policy/script1.sh')
-rwxr-xr-xtest/csit/scripts/policy/script1.sh21
1 files changed, 12 insertions, 9 deletions
diff --git a/test/csit/scripts/policy/script1.sh b/test/csit/scripts/policy/script1.sh
index db5b5155a..d66b0734c 100755
--- a/test/csit/scripts/policy/script1.sh
+++ b/test/csit/scripts/policy/script1.sh
@@ -70,19 +70,22 @@ echo $DOCKER_IP
git clone http://gerrit.onap.org/r/oparent
+git clone http://gerrit.onap.org/r/policy/engine
+cd engine/packages/docker
+${WORK_DIR}/maven/apache-maven-3.3.9/bin/mvn prepare-package --settings ${WORK_DIR}/oparent/settings.xml
+docker build -t onap/policy/policy-pe target/policy-pe
+
+cd ${WORK_DIR}
+git clone http://gerrit.onap.org/r/policy/drools-pdp
+cd drools-pdp/packages/docker
+${WORK_DIR}/maven/apache-maven-3.3.9/bin/mvn prepare-package --settings ${WORK_DIR}/oparent/settings.xml
+docker build -t onap/policy/policy-drools target/policy-drools
+
+cd ${WORK_DIR}
git clone http://gerrit.onap.org/r/policy/docker
cd docker
-${WORK_DIR}/maven/apache-maven-3.3.9/bin/mvn clean install prepare-package --settings ../oparent/settings.xml
-cp policy-pe/* target/policy-pe
-cp policy-drools/* target/policy-drools
-
-docker build -t onap/policy/policy-os policy-os
-docker build -t onap/policy/policy-db policy-db
docker build -t onap/policy/policy-nexus policy-nexus
-docker build -t onap/policy/policy-base policy-base
-docker build -t onap/policy/policy-pe target/policy-pe
-docker build -t onap/policy/policy-drools target/policy-drools
chmod +x config/drools/drools-tweaks.sh