From 466163f7911d5001420bb832f6328c0cc1f43ceb Mon Sep 17 00:00:00 2001 From: Paulo Veiga Date: Thu, 27 Jan 2022 19:49:55 +0000 Subject: [PATCH] Change default tomcat db storage dir. --- distribution/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/distribution/Dockerfile b/distribution/Dockerfile index 8cab69fc..7d86469e 100644 --- a/distribution/Dockerfile +++ b/distribution/Dockerfile @@ -10,7 +10,7 @@ ARG WEBAPP_TARGET_DIR="/usr/local/tomcat/webapps/ROOT" # Defautl ENV configurations ... 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.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 # Copy default HSQL DB for testing ... -RUN mkdir -p /var/wisemapping/db -COPY db/ /var/wisemapping/db +RUN mkdir -p ${database.base.url}/db +COPY db/ ${database.base.url}/db