File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -14,12 +14,19 @@ RUN if [ "$TOMCAT_EXTRAS" = false ]; then \
1414# Add war files to be deployed
1515COPY docker/*.war "${CATALINA_BASE}/webapps/"
1616
17+ # name of the external dir
18+ ENV DATA_DIR="/data"
19+ RUN mkdir -p ${DATA_DIR}/configs
20+ # add all files you want to copy to the external dir
21+ # COPY newext.json /data/configs/new.json
22+
1723# Geostore externalization template. Disabled by default
1824COPY docker/geostore-datasource-ovr.properties "${CATALINA_BASE}/conf/"
1925ARG GEOSTORE_OVR_OPT=""
20- ENV JAVA_OPTS="${JAVA_OPTS} ${GEOSTORE_OVR_OPT}"
26+ ENV JAVA_OPTS="${JAVA_OPTS} ${GEOSTORE_OVR_OPT} -Ddatadir.location=${DATA_DIR} "
2127
2228# Set variable to better handle terminal commands
2329ENV TERM xterm
30+ VOLUME [ "${DATA_DIR}" ]
2431
2532EXPOSE 8080
You can’t perform that action at this time.
0 commit comments