Skip to content

Commit

Permalink
testing external directory for branch 2021.02.xx (#7468)
Browse files Browse the repository at this point in the history
* checked externalisation

* removed tested config

* remove externalization

* Update Dockerfile

Co-authored-by: Alessandro Parma <alessa.parma@gmail.com>
  • Loading branch information
krishnaglodha and randomorder authored Dec 20, 2021
1 parent 130ed65 commit e3741b6
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit e3741b6

Please sign in to comment.