set the default h2 path to a relative one next to the executable

This commit is contained in:
Athou
2024-08-16 13:47:15 +02:00
parent 2694fea211
commit 1bfa3ebb8e
3 changed files with 5 additions and 5 deletions

View File

@@ -5,8 +5,8 @@ EXPOSE 8082
RUN mkdir -p /commafeed/data
VOLUME /commafeed/data
COPY commafeed-server/target/quarkus-app/ /commafeed/app
WORKDIR /commafeed/app
COPY commafeed-server/target/quarkus-app/ /commafeed
WORKDIR /commafeed
CMD ["java", \
"-Xtune:virtualized", \

View File

@@ -4,6 +4,6 @@ EXPOSE 8082
RUN mkdir -p /commafeed/data
VOLUME /commafeed/data
COPY commafeed-server/target/commafeed-*-runner /commafeed/app/application
WORKDIR /commafeed/app
COPY commafeed-server/target/commafeed-*-runner /commafeed/application
WORKDIR /commafeed
CMD ["./application"]

View File

@@ -39,7 +39,7 @@ quarkus.shutdown.timeout=5s
# prod profile overrides
%prod.quarkus.datasource.jdbc.url=jdbc:h2:/commafeed/data/db;DEFRAG_ALWAYS=TRUE
%prod.quarkus.datasource.jdbc.url=jdbc:h2:./data/db;DEFRAG_ALWAYS=TRUE
%prod.quarkus.datasource.username=sa
%prod.quarkus.datasource.password=sa
%prod.quarkus.log.category."com.rometools.modules".level=ERROR