Skip to content

Commit

Permalink
Merge pull request #5007 from evolvedbinary/feature/docker-debug-jdwp…
Browse files Browse the repository at this point in the history
…-suspend

Allow the user to override the JDWP Suspend at Docker build time
  • Loading branch information
dizzzz authored Aug 30, 2023
2 parents 577f3a5 + 1fea4d9 commit 4bbdec3
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 @@ -46,10 +46,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 @@ -71,7 +72,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 4bbdec3

Please sign in to comment.