Change default tomcat db storage dir.

This commit is contained in:
Paulo Veiga 2022-01-27 19:49:55 +00:00
parent 993b998bfc
commit 466163f791

View File

@ -10,7 +10,7 @@ ARG WEBAPP_TARGET_DIR="/usr/local/tomcat/webapps/ROOT"
# Defautl ENV configurations ... # Defautl ENV configurations ...
ENV JAVA_OPTS="-XX:+PrintFlagsFinal -XX:InitialRAMPercentage=30 -XX:MaxRAMPercentage=80" ENV JAVA_OPTS="-XX:+PrintFlagsFinal -XX:InitialRAMPercentage=30 -XX:MaxRAMPercentage=80"
ENV database.base.url="/var/wisemapping" ENV database.base.url="/var/lib/wisemapping"
# Copy wisemapping distribution ... # Copy wisemapping distribution ...
COPY wisemapping.war /tmp COPY wisemapping.war /tmp
@ -22,5 +22,5 @@ RUN rm /tmp/wisemapping.war
RUN cp ${WEBAPP_TARGET_DIR}/WEB-INF/classes/log4j-stdout.properties ${WEBAPP_TARGET_DIR}/WEB-INF/classes/log4j.properties RUN cp ${WEBAPP_TARGET_DIR}/WEB-INF/classes/log4j-stdout.properties ${WEBAPP_TARGET_DIR}/WEB-INF/classes/log4j.properties
# Copy default HSQL DB for testing ... # Copy default HSQL DB for testing ...
RUN mkdir -p /var/wisemapping/db RUN mkdir -p ${database.base.url}/db
COPY db/ /var/wisemapping/db COPY db/ ${database.base.url}/db