From 167efb921e3b2cb72b294424f04ee1648a07d48b Mon Sep 17 00:00:00 2001 From: Cornul11 Date: Mon, 3 Jul 2023 13:58:29 +0200 Subject: [PATCH] gave Java more heap memory, and sync the time with the docker host --- Dockerfile-app | 1 + Dockerfile-db | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile-app b/Dockerfile-app index 852f59e..f6b70e2 100644 --- a/Dockerfile-app +++ b/Dockerfile-app @@ -12,4 +12,5 @@ FROM openjdk:17-slim WORKDIR /usr/src/app COPY --from=build /usr/src/app/target/thesis-1.0-SNAPSHOT.jar /usr/src/app COPY --from=build /usr/src/app/target/dependency /usr/src/app/libs +ENV TZ=Europe/Amsterdam ENTRYPOINT java -Xmx8g -cp /usr/src/app/libs/*:/usr/src/app/thesis-1.0-SNAPSHOT.jar nl.tudelft.cornul11.thesis.MainApp -m CORPUS_GEN_MODE -d ${DIRECTORY} diff --git a/Dockerfile-db b/Dockerfile-db index 9e703cb..d4fa997 100644 --- a/Dockerfile-db +++ b/Dockerfile-db @@ -1,3 +1,4 @@ # latest should not be used as more recent versions are incompatible with older docker versions FROM mariadb:10.7 -EXPOSE 3306 \ No newline at end of file +EXPOSE 3306 +ENV TZ=Europe/Amsterdam \ No newline at end of file