quarkus:dev's debugHost not configurable
See original GitHub issueWe are running development environments and tools in containers and trying to separate responsibilities not only in separate containers (and also pods, so colocation is not really a solution). One of the ideas was separate IDE pods from the actual application (quarkus-based, in this occasion) being in development. The challenge for us is, to make relevant ports from the application in development available at least to the IDE container.
When running mvn quarkus:dev
, application’s port is only bound to loopback interface, which is luckily configurable e.g. via enviroment variable QUARKUS_HTTP_HOST=0.0.0.0
. The same problem applies to other ports like the debug port, which is opened by the maven plugin. Unfortunately it looks like there is currently no way to change this configuration, even though most of the code to do so is already there (have a look at io.quarkus.maven.DevMojo#debugHost
).
Expected behavior
When running mvn quarkus:dev
debug port is bound to 127.0.0.1 by default, but is configurable somehow.
Actual behavior
Running mvn quarkus:dev
debug port is bound to 127.0.0.1 and not configurable.
To Reproduce
Without containering: Start any quarkus application using mvn quarkus:dev
and from the same machine try to connect to it using jdb -attach $(hostname):5005
. jdb -attach localhost:5005
is working fine for reference.
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (7 by maintainers)
You should be able to do
mvn quarkus:dev -DdebugHost=0.0.0.0
#14432 fixes the issue