From e3741b6ff93e4a04364c4ccb6abf0ff90bf6126d Mon Sep 17 00:00:00 2001 From: Krishna Lodha <47075664+krishnaglodha@users.noreply.github.com> Date: Mon, 20 Dec 2021 19:32:19 +0530 Subject: [PATCH] testing external directory for branch 2021.02.xx (#7468) * checked externalisation * removed tested config * remove externalization * Update Dockerfile Co-authored-by: Alessandro Parma --- Dockerfile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index c6e9bfdabe..e143410e46 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,12 +14,19 @@ RUN if [ "$TOMCAT_EXTRAS" = false ]; then \ # Add war files to be deployed COPY docker/*.war "${CATALINA_BASE}/webapps/" +#name of the external dir +ENV DATA_DIR="/data" +RUN mkdir -p ${DATA_DIR}/configs +#add all files you want to copy to the external dir +# COPY newext.json /data/configs/new.json + # Geostore externalization template. Disabled by default COPY docker/geostore-datasource-ovr.properties "${CATALINA_BASE}/conf/" ARG GEOSTORE_OVR_OPT="" -ENV JAVA_OPTS="${JAVA_OPTS} ${GEOSTORE_OVR_OPT}" +ENV JAVA_OPTS="${JAVA_OPTS} ${GEOSTORE_OVR_OPT} -Ddatadir.location=${DATA_DIR}" # Set variable to better handle terminal commands ENV TERM xterm +VOLUME [ "${DATA_DIR}" ] EXPOSE 8080