Commit Graph

26 Commits

Author SHA1 Message Date
Thomas Orozco 4466cecec2 Add -e flag to a expect a given exit code
Passing this flag causes Tini to remap the given exit code to 0 when
forwarding it.

Fixes: #69
2018-02-18 16:20:20 +01:00
Luca 'meti' P 30343e77f6 Keyserver address change to allow Docker Hub to successfully build image. 2017-08-19 13:06:14 +02:00
Dominik Horb 21c118c0e9 Use --no-cache for Alpine to minimize footprint
Using `apk add --no-cache tini` instead of `apk add --update tini` avoids caching and reduces the size of the resulting container. See here: https://github.com/gliderlabs/docker-alpine/blob/master/docs/usage.md#disabling-cache
2017-06-09 20:13:09 +02:00
Thomas Orozco 81f886dbef Merge pull request #88 from krallin/document-docker-113
Document Docker's --init flag
2017-05-19 18:26:28 +02:00
Thomas Orozco 392fc1080c Document Docker's --init flag 2017-05-19 18:08:32 +02:00
Sam Choukri 95c504eb0b updated documentation for `Process group killing` 2017-05-19 18:01:01 +02:00
Gangstead 6ad9813ed8 Make Alpine instructions Dockerfile commands (#77)
Make Alpine instructions Dockerfile commands
2017-03-03 20:20:29 +01:00
Thomas Orozco 8d569f0419 Update docs to mention 32-bit build 2017-01-28 15:29:33 +01:00
Thomas Orozco 39f7778e32 Add "Why Tini?" section in the README
Adds a summary of #8 and a link to that discussion.
2017-01-02 21:16:33 +01:00
Thomas Orozco 82e8cc0fd4 Add @geek to contributors 2016-12-06 20:56:03 +01:00
Thomas Orozco a60521a432 Add @crosbymichael to contributors 2016-11-04 13:31:19 +01:00
Thomas Orozco 271c09796e Update README to mention ARM images 2016-10-30 15:55:56 +01:00
Jorge Marin df9dbc1055 Replace GPG key short id for full fingerprint (#48)
Prevent dead beef attack
2016-09-01 19:31:55 +02:00
Thomas Orozco a61a036c6e [ci skip] Update Alpine instructions 2016-06-03 19:34:45 +02:00
Danilo Bürger d5d6e0ee94 Moved alpine package to community repository 2016-02-05 21:59:40 +01:00
Thomas Orozco 551d271823 Document signed binaries 2016-01-26 21:56:43 -05:00
Thomas Orozco a4af09f931 Do a better job at acknowledging contributors
Thanks to @tianon, @dpw, @danilobuerger, @datakurre!
2015-11-20 22:31:08 +01:00
Thomas Orozco b62b57caeb There appears to be a Nix package now!
https://github.com/NixOS/nixpkgs/pull/10945
2015-11-20 22:30:00 +01:00
Thomas Orozco 158def8e93 Include install instructions for Alpine Linux
Fix: #18
2015-10-28 20:20:07 +01:00
David Wragg 109019f917 Support for killing the whole child process group
tini only kills the immediate child process.  This means that if you
do, for example,

    docker run krallin/ubuntu-tini sh -c 'sleep 10'

and ctrl-C it, nothing happens: SIGINT is sent to the 'sh' process,
but that shell won't react to it while it is waiting for the 'sleep'
to finish.

This change adds a -g option to put the child process of tini into a
new process group, and sends signals to that group, so that every
process in the group gets a signal.  This corresponds more closely to
what happens when you do ctrl-C etc. in a terminal: The signal is sent
to the foreground process group.

So if you try the example above with a container image that passes -g
to tini, the SIGINT will be received by the 'sleep', and the container
promptly exits.
2015-10-26 21:52:06 +01:00
Thomas Orozco bfa8e0bf03 Update README to mention child subreaping support 2015-09-06 15:38:57 +02:00
Thomas Orozco fa1f3602a6 Update README (subreaping) 2015-09-01 21:43:02 +02:00
Thomas Orozco 376d186b2e Set default verbosity level to 1
This means warnings always show warnings, which is the right thing to do
considering the 2 warnings we show are actually for important
information.
2015-09-01 21:17:10 +02:00
Tianon Gravi f2229f937e Bring back tini-static! 🎉
This allows the use of `tini` within even more minimal environments (such as images that are `FROM scratch` with a single application binary `COPY`'d in).
2015-06-26 21:43:53 +02:00
Thomas Orozco b7afb24a82 Add notes about autogenerated files 2015-05-04 21:05:21 +02:00
Thomas Orozco a1d6372ef6 Generate DEB and RPM packages 2015-05-04 20:59:17 +02:00