diff options
author | Krzysztof Kwiecien <krzysztof.kwiecien1@orange.com> | 2017-08-08 11:44:36 +0200 |
---|---|---|
committer | Krzysztof Kwiecien <krzysztof.kwiecien1@orange.com> | 2017-08-08 12:18:13 +0200 |
commit | e572b590bfe254a1bbccf70b567580b72802f656 (patch) | |
tree | 6ae125397e5e3ecafae1856c1e78bf9e9945d250 | |
parent | 0beb802ff51065830f7d33a137465b8c6653f175 (diff) |
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 <krzysztof.kwiecien1@orange.com>
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | config/drools/feature-healthcheck.conf | 2 | ||||
-rw-r--r-- | policy-drools/docker-install.sh | 4 |
3 files changed, 6 insertions, 2 deletions
@@ -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 |