appropriate / docker-jetty

Formerly the location of the Docker official image for Jetty
https://registry.hub.docker.com/_/jetty/
46 stars 46 forks source link

Container exits immediately when using JDWP in JAVA_OPTIONS #130

Closed milo2048 closed 4 years ago

milo2048 commented 4 years ago

Running with docker-compose, using jetty:9.4-jre8, when I specify this:

environment:
     JAVA_OPTIONS=-Xmx2048m -Xms2048m -XX:MaxPermSize=512m -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005

The Jetty container exits immediately with code 0. Removing the -agentlib causes it to run normally.

milo2048 commented 4 years ago

I checked out the latest code and rebuilt the image using docker-entrypoint.sh from commit 6938dbcf3c3f1e433fca63909400670a52f39dfe but otherwise using the code in master. The new image worked as expected. This leads me to believe the issue is with the latest entrypoint script.

ngvtsn commented 4 years ago

Same. Looks like docker-entrypoint.sh --dry-run generates wrong jetty.start

sittingbool commented 4 years ago

Same here, how can i resolve this?

joakime commented 4 years ago

This issue has been moved to the new Official Eclipse Jetty Docker repository.

See https://github.com/eclipse/jetty.docker/issues/12