From 1fea4d917786bc3795de3861faea1e92a23f2328 Mon Sep 17 00:00:00 2001 From: Adam Retter Date: Mon, 14 Aug 2023 17:04:53 -0400 Subject: [PATCH] [feature] Allow the user to override the JDWP Suspend at Docker build time --- exist-docker/src/main/resources-filtered/Dockerfile-DEBUG | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/exist-docker/src/main/resources-filtered/Dockerfile-DEBUG b/exist-docker/src/main/resources-filtered/Dockerfile-DEBUG index a656a8c8b1d..17bf0239765 100644 --- a/exist-docker/src/main/resources-filtered/Dockerfile-DEBUG +++ b/exist-docker/src/main/resources-filtered/Dockerfile-DEBUG @@ -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} @@ -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", \