From: Krzysztof Kwiecien Date: Tue, 8 Aug 2017 09:44:36 +0000 (+0200) Subject: correct feature install procedure in docker/drools X-Git-Tag: v1.1.0~39 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F23%2F6923%2F2;p=policy%2Fdocker.git correct feature install procedure in docker/drools change FEATURES_HOME variable assigment to allow feature install (including healthcheck feature) in docker image, change credential to be in line with robot Issue: POLICY-145 Change-Id: Ib7640e3947dab280f368531b693dc26e09fa6f21 Signed-off-by: Krzysztof Kwiecien --- diff --git a/.gitignore b/.gitignore index 84421f84..1c47ce99 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,5 @@ .project .settings target +install.log* +policy-drools/install.log* diff --git a/config/drools/feature-healthcheck.conf b/config/drools/feature-healthcheck.conf index 3351b78f..31baed21 100644 --- a/config/drools/feature-healthcheck.conf +++ b/config/drools/feature-healthcheck.conf @@ -1,2 +1,2 @@ HEALTHCHECK_USER=healthcheck -HEALTHCHECK_PASSWORD=zb!XztG3 +HEALTHCHECK_PASSWORD=zb!XztG34 diff --git a/policy-drools/docker-install.sh b/policy-drools/docker-install.sh index aaa3d10d..8f5fbe4e 100644 --- a/policy-drools/docker-install.sh +++ b/policy-drools/docker-install.sh @@ -822,6 +822,8 @@ function installFeatures fi local name featureConf + export FEATURES_HOME="${POLICY_HOME}/${FEATURES_DIR}" + echo "FEATURES_HOME is ${FEATURES_HOME}" mkdir -p "${FEATURES_HOME}" > /dev/null 2>&1 if [[ -d "${FEATURES_HOME}" && -x "${FEATURES_HOME}" ]]; then @@ -891,6 +893,6 @@ LOGFILE=$PWD/install.log.$TIMESTAMP OPERATION=install BASE_CONF=base.conf HOME_M2=$HOME/.m2 -FEATURES_HOME="${POLICY_HOME}/features" +FEATURES_DIR="features" do_install 2>&1 | tee $LOGFILE