Adding lines to the docker configuration that enables remote debugging for java

This commit is contained in:
Christian 'ketura' McCarty
2021-03-19 00:19:21 -05:00
parent a3a1112151
commit 304c9535c2
2 changed files with 6 additions and 0 deletions

View File

@@ -19,6 +19,9 @@ services:
- target: 80
# published is what's on the host machine
published: "${APP_PORT}"
#These are the ports used for remote debugging the JRE
- target: 8000
published: 8052
volumes:
- type: bind
source: ../gemp-lotr-async/src/main/web

View File

@@ -38,6 +38,9 @@ RUN mkdir -p /usr/share/maven /usr/share/maven/ref \
ENV MAVEN_HOME /usr/share/maven
ENV MAVEN_CONFIG "$USER_HOME_DIR/.m2"
# Enables the JRE remote debugging; perhaps comment this out in a production build
ENV JAVA_TOOL_OPTIONS -agentlib:jdwp=transport=dt_socket,address=*:8000,server=y,suspend=n
#####################################################################