-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
riak_cs
won't get TERM
signal to stop gracefully
#10
Comments
riak_cs' won't get
TERM` signal to stop gracefullyriak_cs
won't get TERM
signal to stop gracefully
The Dockerfile we provide is more of a "reference implementation", rather than an attempt to provide for real-world production cases. Some may want to build and run it on the latest OTP-25 or -26 while others may have reasons to stick with OTP-22. Some might even choose to install it from a package instead of building it inside a docker container. There's also an issue with configuring it: one can mount a dir with customized riak-cs.conf from their Dockerfile at runtime, or directly edit it as part of start-up command sequence ending with There is a sister project, https://github.com/TI-Tokyo/riak_cs_service_bundle, which you may find useful or inspiring. That said, I will gladly review and accept your PR. |
Thanks for the quick answer and for all the useful info. |
riak_cs/Dockerfile
Line 20 in 5b978a4
As per CMD documentation, this will wrap
riak_cs
process in ash
subprocess.This would prevent external signals from docker from reaching
riak_cs
process.docker stop
is basically doing adocker kill -s TERM
graceful stop.Since,
riak_cs foreground
should be always run, with optional command line switches, I would suggest to use ENTRYPOINT instead. Otherwise, as a lesser evil, at least useCMD
's exec form.I can submit a PR, if desired.
The text was updated successfully, but these errors were encountered: