From 95a9c3c6563a10e55c3c860acdf670d89c22239c Mon Sep 17 00:00:00 2001 From: Georgios Andrianakis Date: Wed, 22 Feb 2023 11:31:02 +0200 Subject: [PATCH] Update instructions on running container built with Dockerfile with debug 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 --- .../tooling/dockerfiles/base/Dockerfile-layout.include.qute | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/tooling/dockerfiles/base/Dockerfile-layout.include.qute b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/tooling/dockerfiles/base/Dockerfile-layout.include.qute index 342f6f80fa105..2fabc131c7591 100644 --- a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/tooling/dockerfiles/base/Dockerfile-layout.include.qute +++ b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/tooling/dockerfiles/base/Dockerfile-layout.include.qute @@ -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 : #