restore Docker workflow

This commit is contained in:
Athou
2024-08-11 22:04:35 +02:00
parent cc32f8ad16
commit 09e0a51b46
7 changed files with 86 additions and 27 deletions

View File

@@ -0,0 +1,16 @@
FROM ibm-semeru-runtimes:open-21.0.3_9-jre
EXPOSE 8082
RUN mkdir -p /commafeed/data
VOLUME /commafeed/data
COPY commafeed-server/target/quarkus-app/ /commafeed/app
WORKDIR /commafeed/app
CMD ["java", \
"-Xtune:virtualized", \
"-Xminf0.05", \
"-Xmaxf0.1", \
"-jar", \
"quarkus-run.jar"]

View File

@@ -0,0 +1,9 @@
FROM debian:12.6
EXPOSE 8082
RUN mkdir -p /commafeed/data
VOLUME /commafeed/data
COPY commafeed-server/target/commafeed-*-runner /commafeed/app/application
WORKDIR /commafeed/app
CMD ["./application"]

View File

@@ -41,3 +41,9 @@ quarkus.shutdown.timeout=5s
%test.commafeed.smtp.user-name=user
%test.commafeed.smtp.password=pass
%test.commafeed.smtp.from-address=noreply@commafeed.com
# prod profile overrides
%prod.quarkus.datasource.jdbc.url=jdbc:h2:/commafeed/data/db;DEFRAG_ALWAYS=TRUE
%prod.quarkus.datasource.username=sa
%prod.quarkus.datasource.password=sa