Skip to content

Commit

Permalink
feat: jvm opts docker (#109)
Browse files Browse the repository at this point in the history
* build: add jvm options at started

* bump: version to 2.3.8
  • Loading branch information
laurentC35 authored Aug 7, 2024
1 parent 6e5c5f8 commit 2661095
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
17 changes: 12 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
FROM eclipse-temurin:21.0.4_7-jre

ENV LANG=fr_FR.UTF-8 LANGUAGE=fr_FR:fr LC_ALL=fr_FR.UTF-8
# RUN apt-get update -y
# RUN apt-get install fontconfig libretls musl-locales musl-locales-lang ttf-dejavu tzdata zlib -y

WORKDIR /opt/pe/
COPY ./target/*.jar /opt/pe/pe.jar
ENTRYPOINT ["java", "-jar", "/opt/pe/pe.jar"]
ENV PATH_TO_JAR=/application/pe-bo.jar
WORKDIR application
RUN rm -rf /application
ADD ./target/*.jar $PATH_TO_JAR

ENV JAVA_TOOL_OPTIONS_DEFAULT \
-XX:MaxRAMPercentage=75 \
-XX:+UseParallelGC

ENTRYPOINT [ "/bin/sh", "-c", \
"export JAVA_TOOL_OPTIONS=\"$JAVA_TOOL_OPTIONS_DEFAULT $JAVA_TOOL_OPTIONS\"; \
exec java -jar $PATH_TO_JAR" ]
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>fr.insee</groupId>
<artifactId>public-enemy-api</artifactId>
<version>2.3.7</version>
<version>2.3.8</version>
<packaging>jar</packaging>

<name>public-enemy-api</name>
Expand Down

0 comments on commit 2661095

Please sign in to comment.