Skip to content

Commit

Permalink
Merge pull request #5008 from evolvedbinary/6.x.x/feature/docker-debu…
Browse files Browse the repository at this point in the history
…g-jdwp-suspend

[6.x.x] Allow the user to override the JDWP Suspend at Docker build time
  • Loading branch information
dizzzz authored Aug 30, 2023
2 parents c1e4b4d + bb07bfb commit e6cd0a3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions exist-docker/src/main/resources-filtered/Dockerfile-DEBUG
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,11 @@ LABEL org.label-schema.build-date=${maven.build.timestamp} \

EXPOSE 8080 8443 5005

# make CACHE_MEM, MAX_BROKER, and JVM_MAX_RAM_PERCENTAGE available to users
# make CACHE_MEM, MAX_BROKER, JVM_MAX_RAM_PERCENTAGE, and JVM_JDWP_SUSPEND available to users at build time
ARG CACHE_MEM
ARG MAX_BROKER
ARG JVM_MAX_RAM_PERCENTAGE
ARG JVM_JDWP_SUSPEND

ENV EXIST_HOME "/exist"
ENV CLASSPATH=/exist/lib/${exist.uber.jar.filename}
Expand All @@ -72,7 +73,7 @@ ENV JAVA_TOOL_OPTIONS \
-XX:+UseContainerSupport \
-XX:MaxRAMPercentage=${JVM_MAX_RAM_PERCENTAGE:-75.0} \
-XX:+ExitOnOutOfMemoryError \
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005
-agentlib:jdwp=transport=dt_socket,server=y,suspend=${JVM_JDWP_SUSPEND:-n},address=5005

HEALTHCHECK CMD [ "java", \
"org.exist.start.Main", "client", \
Expand Down

0 comments on commit e6cd0a3

Please sign in to comment.