summaryrefslogtreecommitdiffstats
path: root/packages/docker
diff options
context:
space:
mode:
authorLiam Fallon <liam.fallon@est.tech>2019-03-06 13:59:43 +0000
committerGerrit Code Review <gerrit@onap.org>2019-03-06 13:59:43 +0000
commit9bc90a60d8248410cd2aca9ff394b86a7e839a2d (patch)
tree6d8ed1fe303e4940ddcd0fc6ae31304877642133 /packages/docker
parentc4f4624a310a567b20a3d8900ae90fa7cbfa23f7 (diff)
parentb68a2f1521b0e9ccb91e41b114ee7022827a19db (diff)
Merge "pdp-d remove volume + install simplifications"
Diffstat (limited to 'packages/docker')
-rw-r--r--packages/docker/src/main/docker/Dockerfile2
-rw-r--r--packages/docker/src/main/docker/docker-install.sh38
2 files changed, 1 insertions, 39 deletions
diff --git a/packages/docker/src/main/docker/Dockerfile b/packages/docker/src/main/docker/Dockerfile
index 829bb6b0..4d46ba0b 100644
--- a/packages/docker/src/main/docker/Dockerfile
+++ b/packages/docker/src/main/docker/Dockerfile
@@ -44,7 +44,7 @@ WORKDIR ${POLICY_INSTALL}
COPY install-drools.zip docker-install.sh do-start.sh wait-for-port.sh ./
-VOLUME [ "${POLICY_INSTALL}/config", "${POLICY_HOME}/config" ]
+VOLUME [ "${POLICY_INSTALL}/config" ]
RUN unzip -o install-drools.zip && \
rm install-drools.zip && \
diff --git a/packages/docker/src/main/docker/docker-install.sh b/packages/docker/src/main/docker/docker-install.sh
index f4c335b6..a44f91a6 100644
--- a/packages/docker/src/main/docker/docker-install.sh
+++ b/packages/docker/src/main/docker/docker-install.sh
@@ -620,44 +620,6 @@ EOF
-Dfile=$RULES_JAR -DgeneratePom=true -DupdateReleaseInfo=true
fi
fi
-
- update_monitor $CONTROLLER_NAME
-}
-
-
-function update_monitor() {
- if [[ $DEBUG == y ]]; then
- echo "-- ${FUNCNAME[0]} $@ --"
- set -x
- fi
-
- local NAME lastline
-
- NAME=$1
-
- if [[ -f ${POLICY_HOME}/etc/monitor/monitor.cfg ]]; then
- if grep -q "^${NAME}=" ${POLICY_HOME}/etc/monitor/monitor.cfg; then
- echo "OK: updating monitoring entry for ${NAME}"
- /bin/sed -i.bak \
- -e "s/^${NAME}=.*/${NAME}=off/g" \
- ${POLICY_HOME}/etc/monitor/monitor.cfg
- else
- # make sure file ends with newline
- lastline=$(tail -n 1 ${POLICY_HOME}/etc/monitor/monitor.cfg; echo x)
- lastline=${lastline%x}
- if [ "${lastline: -1}" = $'\n' ]; then
- echo "OK: adding an entry for ${NAME} in ${POLICY_HOME}/etc/monitor/monitor.cfg"
- else
- echo "OK: adding an entry for ${NAME} in ${POLICY_HOME}/etc/monitor/monitor.cfg (with newline)"
- echo "" >> ${POLICY_HOME}/etc/monitor/monitor.cfg
- fi
-
-
- echo "${NAME}=off" >> ${POLICY_HOME}/etc/monitor/monitor.cfg
- fi
- else
- echo "WARNING: ${POLICY_HOME}/etc/monitor/monitor.cfg does not exist. No monitoring enabled."
- fi
}
# Usage: getPomAttributes <pom-file> <attribute> ...