Adding lines to the docker configuration that enables remote debugging for java
This commit is contained in:
@@ -19,6 +19,9 @@ services:
|
|||||||
- target: 80
|
- target: 80
|
||||||
# published is what's on the host machine
|
# published is what's on the host machine
|
||||||
published: "${APP_PORT}"
|
published: "${APP_PORT}"
|
||||||
|
#These are the ports used for remote debugging the JRE
|
||||||
|
- target: 8000
|
||||||
|
published: 8052
|
||||||
volumes:
|
volumes:
|
||||||
- type: bind
|
- type: bind
|
||||||
source: ../gemp-lotr-async/src/main/web
|
source: ../gemp-lotr-async/src/main/web
|
||||||
|
|||||||
@@ -38,6 +38,9 @@ RUN mkdir -p /usr/share/maven /usr/share/maven/ref \
|
|||||||
ENV MAVEN_HOME /usr/share/maven
|
ENV MAVEN_HOME /usr/share/maven
|
||||||
ENV MAVEN_CONFIG "$USER_HOME_DIR/.m2"
|
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
|
||||||
|
|
||||||
|
|
||||||
#####################################################################
|
#####################################################################
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user