diff options
author | Bilal A <bilal@research.att.com> | 2019-06-07 21:25:59 +0000 |
---|---|---|
committer | Bilal A <bilal@research.att.com> | 2019-06-10 21:51:47 +0000 |
commit | c5fc0e448929f393941870cf071f3f1f54c4604c (patch) | |
tree | fac8a94f3a4ba7db2414c2ac1852637689d7d28a /plans/policy/distribution/setup.sh | |
parent | 4f4849dc9bd3b584e564ccd83651607941f2a95e (diff) |
Pull correct docker images.
Enables Policy CSITs for API, PAP, Distribution and XACML-PDP
to pull correct docker images based on the code branch.
Issue-ID: POLICY-1834
Signed-off-by: Bilal A <bilal@research.att.com>
Change-Id: I6b99c8ae9cb78dd8ebddc522bc2a7080ec6e5735
Diffstat (limited to 'plans/policy/distribution/setup.sh')
-rw-r--r-- | plans/policy/distribution/setup.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/plans/policy/distribution/setup.sh b/plans/policy/distribution/setup.sh index 40a15d12..63d85083 100644 --- a/plans/policy/distribution/setup.sh +++ b/plans/policy/distribution/setup.sh @@ -16,8 +16,14 @@ # # SPDX-License-Identifier: Apache-2.0 # ============LICENSE_END========================================================= +# Select branch +GERRIT_BRANCH=$(cat ${SCRIPTS}/policy/config/policy-csit.conf | cut -d "=" -f2) +echo $GERRIT_BRANCH -docker run -d --name policy-distribution -p 6969:6969 -it nexus3.onap.org:10001/onap/policy-distribution:2.1.0-SNAPSHOT-latest +sudo apt-get -y install libxml2-utils +export POLICY_DISTRIBUTION_VERSION="$(curl --silent https://git.onap.org/policy/distribution/plain/pom.xml?h=${GERRIT_BRANCH} | xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' -)" +echo $POLICY_DISTRIBUTION_VERSION +docker run -d --name policy-distribution -p 6969:6969 -it nexus3.onap.org:10001/onap/policy-distribution:$POLICY_DISTRIBUTION_VERSION POLICY_DISTRIBUTION_IP=`get-instance-ip.sh policy-distribution` echo DISTRIBUTION IP IS ${POLICY_DISTRIBUTION_IP} |