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

docker-compose exit 0 when jdwt remote debug settings are passed to jetty #84

Closed rvillane closed 6 years ago

rvillane commented 6 years ago

When the command includes JDWT session, I get exit 0 when running docker-compose up, if the JDWT settings are removed then everything works fine. Any ideas?

Jetty version: 2018-01-10 23:35:09.811:INFO:oejs.Server:main: jetty-9.4.7.v20170914

This is the error message $ docker-compose logs -f Attaching to retail-processor retail-processor | Listening for transport dt_socket at address: 9999 retail-processor exited with code 0

my docker-compose.yml file looks like this: ` version: "3" services: retail-processor: build : . container_name: retail-processor command: "java -Xms125m -Xmx375m -Djava.io.tmpdir=/tmp/jetty -Xdebug -agentlib:jdwp=transport=dt_socket,address=9999,server=y,suspend=n -jar /usr/local/jetty/start.jar -Djetty.http.port=8080" ports:

rvillane commented 6 years ago

instead of "command" , passing all the params within the JAVA_OPTS envar made the trick