OxalisCommunity / oxalis

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

Run java/Oxalis as PID 1 in docker #443

Closed darklajid closed 4 years ago

darklajid commented 4 years ago

Before this change, docker executed a shell (PID 1) that executed a shell (indirection to support standalone and server invocations) that executed java.

This is unnecessary and wasteful, but more importantly means that unix signals (aka 'docker stop') are sent to a shell script (which doesn't do anything). 'docker stop' takes 10 seconds (its grace period, then the container process is KILLed.

Fixes #442

darklajid commented 4 years ago

Before PR:

.\StopDocker.cmd 9:35:25.41 800e69973af9 9:35:36.58

After PR:

.\StopDocker.cmd 9:41:13.43 eeafd64d56cf 9:41:14.44