OxalisCommunity / oxalis

Oxalis - PEPPOL Access Point open source implementation - Core component
Other
124 stars 90 forks source link

Docker should run java/Oxalis as PID 1 #442

Closed darklajid closed 4 years ago

darklajid commented 4 years ago

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