Closed geigerzaehler closed 5 years ago
hi @geigerzaehler, this is a great idea, i apologize for not doing this already!
since tini
is now included in Docker itself since version 1.13, rather than intalling tini
in the image, is it possible to instead update the installation scripts and documentation to pass the --init
flag to docker run
?
is it possible to instead update the installation scripts and documentation to pass the
--init
flag todocker run
?
Yes, the --init
flag works nicely when using plain docker. But we are using Kubernetes to deploy the image and it does not allow you to specify this flag. Right now we have to tell Kubernetes to forcibly kill the container and this PR would fix that.
okay, makes sense, merged! :tada:
by the way, i'm curious, who's the "we" with whom you're running SSB pubs? :shell:
by the way, published as 1.0.6
, docker build tagged as v1.0.6
Because
sbot server
does not install signal handlers and is run as PID 1 the SIGINT and SIGTERM signals do not terminate the process. This means for example thatdocker stop
takes a long time since it waits for SIGTERM to have an effect and then sends SIGKILL.tini
solves this problem.