Commit Graph

204 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
zimbatm 8574e10c2a add a -w option to warn on reaping children
Well designed software should not produce any zombie or re-parenting
processes.

This adds an option to warn in the logs when reaping of zombies is
happening so that it can be monitored and fixed in subsequent releases
of the software.
2018-02-18 16:05:09 +01:00
Thomas Orozco 0effd37412 Bump version to 0.16.1 2017-08-25 14:31:48 +02:00
Thomas Orozco 545fea7f5a Skip clean up in Travis
The artifacts are now in the repo, so we need this to upload them.
2017-08-25 14:31:13 +02:00
Thomas Orozco 0d5cad47c6 Bump version to 0.16.0
- New arches, thanks to @tianon!
2017-08-25 14:19:01 +02:00
Thomas Orozco 81f6588bce Merge pull request #98 from tianon/more-arches
Add support for armel (ARMv5), ppc64el (IBM POWER 8), and s390x (IBM z Systems)
2017-08-25 14:17:46 +02:00
Tianon Gravi 7bd400d072 List "ARCH_SUFFIX" first in Travis matrix
This allows the list to be sorted the same as the "case" statement in "install_deps.sh".
2017-08-21 16:12:53 -07:00
Tianon Gravi 84674ad923 Convert "install_deps" if-chain to a case statement 2017-08-21 16:12:48 -07:00
Thomas Orozco a77c1fd423 Clean up multi-arch builds a bit
- `ARCH_SUFFIX` should not be passed at runtime: it's already passed as
  a build argument, and it's consumed during the build (so it's too late
  to change it at runtime).
- For consistency, pass `ARCH_NATIVE` and `CC` similarly at build time
  as well: passing `CC` and `ARCH_SUFFIX` at different times is
  particularly error-prone.
- Accept all parameters to `ddist.sh` via environment variables. It
  doesn't make sense to accept exclusively `ARCH_SUFFIX` as a positional
  argument when `ARCH_SUFFIX` alone doesn't accomplish anything (i.e.
  you also need `CC`).

TODO: `CC` should be derived from `ARCH_SUFFIX` in the first place.
2017-08-21 16:12:36 -07:00
Tianon Gravi 7be42da42b Add support for armel (ARMv5), ppc64el (IBM POWER 8), and s390x (IBM z Systems)
This required updating to Ubuntu Xenial for some of the cross compilers, but Travis doesn't support Xenial builders, so this instead converts Travis to use the already-existing "ddist.sh" script for building via Docker.
2017-08-21 16:12:36 -07:00
Thomas Orozco 0c28623811 Merge pull request #99 from krallin/meti--master
Keyserver address change to allow Docker Hub to successfully build image
2017-08-19 13:40:35 +02:00
Luca 'meti' P 30343e77f6 Keyserver address change to allow Docker Hub to successfully build image. 2017-08-19 13:06:14 +02:00
Thomas Orozco 4892d4dc7a Bump version to 0.15.0 2017-07-03 20:57:01 +02:00
Thomas Orozco e4e2f43832 Merge pull request #92 from krallin/muslc-binaries
Build musl-based binaries
2017-07-03 20:55:38 +02:00
Thomas Orozco 540eb7b637 Build musl-based binaries
Also fixed a bug with the signals test, which didn't properly exercise
Tini: rather than check that Tini was properly exiting with 128 +
signal, it raced against Tini and was only successful if Tini didn't get
the change to spawn a subprocess!
2017-06-10 16:47:50 +02:00
Thomas Orozco eb3987cd02 Merge pull request #89 from dominik-bln/patch-1
Use --no-cache for Alpine to minimize footprint
2017-06-09 20:21:11 +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 e96fb184ea Merge pull request #90 from krallin/warn-readme-changes
Check README changes in CI
2017-06-09 20:12:47 +02:00
Thomas Orozco 79fcadab55 Check README changes in CI 2017-06-09 19:58:05 +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 a376bbecc0 Merge pull request #84 from schoukri/patch-1
updated documentation for `Process group killing`
2017-05-19 18:16:06 +02:00
Thomas Orozco 392fc1080c Document Docker's --init flag 2017-05-19 18:08:32 +02:00
Thomas Orozco d508feb30f Merge pull request #87 from krallin/sha256
Add SHA 256 sums
2017-05-19 18:02:53 +02:00
Sam Choukri 95c504eb0b updated documentation for `Process group killing` 2017-05-19 18:01:01 +02:00
Thomas Orozco cffaa6b81e Add SHA 256 sums 2017-05-18 13:45:26 +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 2c02e14748 Merge pull request #73 from krallin/32bits
Build i386 binary
2017-02-05 13:37:14 +01:00
Thomas Orozco 41cc6b38dd Bump version to v0.14.0 2017-02-05 13:31:47 +01:00
Thomas Orozco 8d569f0419 Update docs to mention 32-bit build 2017-01-28 15:29:33 +01:00
Thomas Orozco a2de1a79f2 Build i386 binary
Fixes https://github.com/krallin/tini/issues/30
2017-01-28 15:24:05 +01:00
Thomas Orozco b837c033f8 Merge pull request #70 from krallin/more-README
Add "Why Tini?" section in the README
2017-01-02 21:22:55 +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 c6e0058046 Merge pull request #68 from akimd/fix-c-switch
fix C conformance
2016-12-18 20:16:16 +01:00
Akim Demaille 9ecda1bbf1 fix C conformance
Someone has been writing too much Go recently.  This works because
`errno` is typically a macro coming with its own set of parens.
2016-12-18 18:20:44 +01:00
Thomas Orozco 79016ecced Merge pull request #67 from krallin/fix-subreaper
Fix PR_SET_CHILD_SUBREAPER call
2016-12-18 00:33:48 +01:00
Thomas Orozco 81c54470e6 Bump version to 0.13.2 2016-12-18 00:23:57 +01:00
Thomas Orozco 10094b7097 Fix PR_SET_CHILD_SUBREAPER call
PR_SET_CHILD_SUBREAPER actually requires a non-zero argument to `prctl`
in order to work..!

Now, this used to work just fine (and currently works in most places)
because when we use a libc that doesn't know about
PR_SET_CHILD_SUBREAPER, it doesn't do anything about the second argument
passed to `pctrl`, so we end up sending some junk in as the second
argument. What we send appears to be completely random and as such seems
very unlikely to be zero, and so things appear to work (e.g. the tests
all pass, etc.).

However, using a libc that does know about this argument (e.g. Ubuntu
Xenial), things *don't* work because the second argument is
automatically set to 0 when we don't provide one.

This probably went unnoticed for a while considering that `tini-static`
isn't affected (it's built on Trusty), and that this mode isn't enabled
by default in the first place.
2016-12-18 00:19:20 +01:00
Thomas Orozco d83552dfa3 Merge pull request #66 from krallin/add-geek-to-contributors
Add @geek to contributors
2016-12-06 21:01:44 +01:00
Thomas Orozco 82e8cc0fd4 Add @geek to contributors 2016-12-06 20:56:03 +01:00
Thomas Orozco ed34702cbf Merge pull request #65 from krallin/fix-tcsetpgrp-typos
Fix tcsetpgrp typos / Release 0.13.1
2016-12-05 21:07:22 +01:00
Thomas Orozco 042898f255 Bump version to 0.13.1 2016-12-05 21:01:41 +01:00
Thomas Orozco e38caaf9dd Fix some tcsetpgrp error typos 2016-12-05 21:00:08 +01:00
Thomas Orozco d6938f1a63 Merge pull request #64 from geek/master
Support ENXIO on lx-branded zones
2016-12-05 20:59:02 +01:00
Wyatt Preul 657f02ed38 Support possible failure on lx-branded zones 2016-12-03 14:28:07 -06:00
Thomas Orozco 949e6facb7 Merge pull request #63 from krallin/include-preprocessed-license
Include pre-processed license in repo
2016-11-17 20:26:27 +01:00
Thomas Orozco 325bf78674 Include pre-processed license in repo
Also adding a test in run_build.sh to ensure that the pre-processed
license is always up to date with the actual license file.

To recreate: `xxd -i LICENSE > src/license.h`
2016-11-17 20:20:58 +01:00
Thomas Orozco a87614212b Merge pull request #61 from andrewhsu/fix-fwrite
handle return val of fwrite() to pacify compiler warn
2016-11-13 18:31:45 +01:00
Andrew Hsu 1f6e456fc2 handle return val of fwrite() to pacify compiler warn
Signed-off-by: Andrew Hsu <andrewhsu@docker.com>
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2016-11-11 12:05:21 -08:00
Thomas Orozco 4a92b9e201 Merge pull request #60 from krallin/white-label
"White label" when MINIMAL is set
2016-11-04 18:11:12 +01:00
Thomas Orozco e8de7825e6 Bump version to 0.13.0 2016-11-04 18:06:25 +01:00