Right now the Docker setup works like this (simplified):
sh /oxalis/bin/run-docker.sh
→ sh /oxalis/bin-server/run-docker.sh
→→ java -jar ...
/bin/sh runs as PID1 in the container. This is not optimal, because now that script is responsible to handle signals sent to PID 1 - like a 'docker stop' from outside for example.
'docker stop' first sends a SIGTERM to the PID1 process and - after 10 seconds - SIGKILLs the process. The current configuration therefor
takes longer to terminate (10s + KILL)
doesn't give us a nice way to shutdown (signal never reaches java/jetty/Oxalis)
Right now the Docker setup works like this (simplified):
sh /oxalis/bin/run-docker.sh → sh /oxalis/bin-server/run-docker.sh →→ java -jar ...
/bin/sh runs as PID1 in the container. This is not optimal, because now that script is responsible to handle signals sent to PID 1 - like a 'docker stop' from outside for example.
'docker stop' first sends a SIGTERM to the PID1 process and - after 10 seconds - SIGKILLs the process. The current configuration therefor