Skip to content

Commit

Permalink
Merge pull request #936 from gisaia/feat/jdkoptions
Browse files Browse the repository at this point in the history
Adding JDK options to docker compose
  • Loading branch information
alainbodiguel authored Jan 15, 2024
2 parents 4179cb5 + c7ea62a commit 7a69b8e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ EXPOSE 9999
HEALTHCHECK --interval=5m --timeout=3s \
CMD curl http://localhost:9999/admin/healthcheck | grep -v "\"healthy\":false" || exit 1

ENV JDK_JAVA_OPTIONS="-Xmx512m -XX:+ExitOnOutOfMemoryError"
ENV JDK_JAVA_OPTIONS="-Xmx1g -XX:+ExitOnOutOfMemoryError"
CMD ["arlas-server.jar", "server", "/opt/app/configuration.yaml"]
2 changes: 1 addition & 1 deletion Dockerfile-package-only
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ EXPOSE 9999
HEALTHCHECK --interval=5m --timeout=3s \
CMD curl http://localhost:9999/admin/healthcheck | grep -v "\"healthy\":false" || exit 1

ENV JDK_JAVA_OPTIONS="-Xmx512m -XX:+ExitOnOutOfMemoryError"
ENV JDK_JAVA_OPTIONS="-Xmx1g -XX:+ExitOnOutOfMemoryError"
CMD ["arlas-server.jar", "server", "/opt/app/configuration.yaml"]

1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ services:
image: gisaia/arlas-server:${ARLAS_VERSION:-latest}
container_name: arlas-server
environment:
- JDK_JAVA_OPTIONS=${ARLAS_JDK_JAVA_OPTIONS:--Xmx1g -XX:+ExitOnOutOfMemoryError}
- ARLAS_LOGGING_LEVEL="${ARLAS_LOGGING_LEVEL:-INFO}"
- ARLAS_LOGGING_CONSOLE_LEVEL="${ARLAS_LOGGING_CONSOLE_LEVEL:-INFO}"
- ARLAS_ELASTIC_NODES=${ARLAS_ELASTIC_NODES:-elasticsearch:9200}
Expand Down

0 comments on commit 7a69b8e

Please sign in to comment.