Skip to content

Commit

Permalink
Update instructions on running container built with Dockerfile with d…
Browse files Browse the repository at this point in the history
…ebug port

The run-java.sh script needs `JAVA_DEBUG` to enabled debugging, but
we also need to override the host and port by using `JAVA_DEBUG_PORT=*:5005`
because otherwise the JVM process listens on the container's localhost
which is not accessible from the host machine trying to connect remotely

Fixes: #31330
  • Loading branch information
geoand committed Feb 22, 2023
1 parent 394f1eb commit 95a9c3c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
# docker run -i --rm -p 8080:8080 quarkus/{project.artifact-id}-{type}
#
# If you want to include the debug port into your docker image
# you will have to expose the debug port (default 5005) like this : EXPOSE 8080 5005
# you will have to expose the debug port (default 5005) like this : EXPOSE 8080 5005.
# Additionally you will have to include set -e JAVA_DEBUG=true and -e JAVA_DEBUG_PORT=*:5005
# when running the container
#
# Then run the container using :
#
Expand Down

0 comments on commit 95a9c3c

Please sign in to comment.