Commit Graph

239 Commits

Author SHA1 Message Date
Bjorn Neergaard 0b44d36658 chore: bump minimum CMake to 2.8.12
This is both the last version supported by current CMake, and the
version in use on Enterprise Linux 7.

Signed-off-by: Bjorn Neergaard <bneergaard@mirantis.com>
2023-01-30 20:28:46 +01:00
Jose Quaresma a49fdd374d tini.c: a function declaration without a prototype is deprecated in all versions of C
| /srv/oe/build/tmp-lmp/work/corei7-64-lmp-linux/tini/0.19.0-r0/git/src/tini.c:150:18: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
| int isolate_child() {
|                  ^
|                   void
| /srv/oe/build/tmp-lmp/work/corei7-64-lmp-linux/tini/0.19.0-r0/git/src/tini.c:395:14: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
| int parse_env() {
|              ^
|               void
| /srv/oe/build/tmp-lmp/work/corei7-64-lmp-linux/tini/0.19.0-r0/git/src/tini.c:416:24: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
| int register_subreaper () {
|                        ^
|                         void
| /srv/oe/build/tmp-lmp/work/corei7-64-lmp-linux/tini/0.19.0-r0/git/src/tini.c:434:19: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
| void reaper_check () {
|                   ^
|                    void
| 4 errors generated.

Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
2023-01-27 13:25:17 +01:00
Thomas Orozco 378bbbc890 Update keyserver recommendation to Ubuntu
Fixes 
2021-07-12 18:32:30 +01:00
Thomas Orozco b9f42a0e7b Indicate that -e can be repeated
See 
2020-11-14 17:29:18 +00:00
Cedric Meury 71911f9699 add installation instructos for Arch Linux 2020-11-14 13:16:10 +00:00
Cedric Meury 9d647c3c17 credit to nfnty for packaging tini for Arch Linux 2020-11-14 13:14:51 +00:00
Peter van Dijk 4df9bb0376 add `chmod +x` step to signed download docs
I can see how it's inconsistent that I don't also repeat the `ENTRYPOINT`/`CMD` lines, but I somehow managed to only miss the `chmod` when combining the steps.
2020-11-14 13:12:10 +00:00
Jim Crowley 7fdac39561 Adding example of how to verify checksums 2020-11-14 13:09:37 +00:00
Peter van Dijk 07b31393ca add Debian installation instructions 2020-11-14 12:39:38 +00:00
MaxPeal 0374cb6b38 add aliases x86_64 for uname -m
add aliases to what uname would return
so it work with uname -m
like https://github.com/krallin/tini/pull/147

add x86_64 for uname -m

to make it work with uname -m
like krallin#147
2020-11-14 12:33:34 +00:00
Thomas Orozco de40ad0077 Update Travis release token 2020-04-19 18:33:22 +01:00
Thomas Orozco 81d9b14415 Release 0.19.0
- mipsel build ()
- include checksums in releases
- ppc64le alias for the ppc64el build
2020-04-19 17:54:02 +01:00
Thomas Orozco ab61b0ceaa Merge commit '76d4aa0' 2020-04-19 17:49:43 +01:00
Thomas Orozco 5fd44ccccb
Merge pull request from krallin/build-updates
Build updates: Python 3, ppc64le alias, publish checksums
2020-04-19 17:47:56 +01:00
Thomas Orozco 9587d90546 run_build: publish sha256 checksums to releases
Fixes . It doesn't hurt to have those, though in general clients
probably shouldn't rely too much on getting their binary and their
checksum from the same source.
2020-04-19 17:34:14 +01:00
Thomas Orozco 3f3e765c2d Add ppc64le alias for the ppc64el build
Fixes . This doesn't hurt, and we already do it for e.g. unsuffixed
and amd64. We're pretty close to a more distinguished mechanism for
aliases being worth it, though.
2020-04-19 17:34:14 +01:00
Thomas Orozco 0e55606bc6 .travis.yml: Remove redundant argument
This isn't being used at all.
2020-04-19 17:34:14 +01:00
Thomas Orozco 12197f95f6 Update tests to Python 3
Time to do this — Python 2 is EOL. This exposed a bug in one of the
tests that was stripping the entire environment from its subprocesses
(though they did sort of work on Python 2).
2020-04-19 17:34:10 +01:00
Thomas Orozco 53e3d32b0e
Merge pull request from ydcool/support-for-mips64el
Add support for mips64el
2020-04-18 10:25:08 +01:00
Dominic Yin 6cfeff2679
add support for mips64el
Signed-off-by: Dominic Yin <yindongchao@inspur.com>
2020-01-15 18:38:54 +08:00
knilch 76d4aa0271
tini.c: fix child subreaper error message
When `TINI_MINIMAL` was defined, the error message read "To fix the problem, or set the environment [...]".
2019-11-28 16:36:32 +01:00
Thomas Orozco 3c5368682e
Merge pull request from antonmos/patch-1
update readme to fix instructions for gpg
2018-11-19 09:43:22 +00:00
Anton Mostovoy cefad7b10a gpg: explicitly pass file name 2018-11-19 10:35:39 +01:00
Thomas Orozco 09bb1faf3e
Merge pull request from antonmos/patch-1
update readme to fix instructions for gpg
2018-11-14 23:18:33 +01:00
Anton Mostovoy 6ece2eb467 update readme to fix instructions for gpg
Something changed in recent version of the libraries within
openjdk:8-jdk-slim docker image and now the existing steps were failing
with erro `gpg: cannot open '/dev/tty': No such device or address`.
2018-11-14 23:11:58 +01:00
Thomas Orozco fec3683b97 Version 0.18.0
- Configure pdeathsignal ()
- Environment variable for -g ()
2018-04-21 09:31:40 +02:00
Thomas Orozco 143cf5d658
Merge pull request from krallin/kill-process-group-env-var
Add an environment variable flag for -g
2018-04-21 09:30:13 +02:00
Thomas Orozco fe4b2f0a6b Add an environment variable flag for -g
Fixes: 
2018-04-21 09:13:40 +02:00
Thomas Orozco e972ea576d
Merge pull request from pks-t/pks/pdeathsignal
Add '-p' flag to get signalled  when parent dies
2018-04-21 09:12:58 +02:00
Thomas Orozco a500ee72c1 Update README for parent death signal 2018-04-19 19:37:43 +02:00
Thomas Orozco 1487373aa2 Exercise pdeathsignal in tests
See: https://github.com/krallin/tini/pull/114#issuecomment-382756277
2018-04-19 16:25:15 +01:00
Patrick Steinhardt eb0f6de3a5 Add '-p' flag to get signalled when parent dies
Add a new flag '-p', which sets up the parent death signal to `SIGKILL`.
This will cause the kernel to send us a `SIGKILL` as soon as the direct
parent process dies. This is useful e.g. in combination with unshare(1)
from util-linux when using PID namespaces. When unshare forks the child,
which is about to become PID 1, killing the unshare parent will not
cause the child to exit. When executing the command

    $ unshare --pid --fork tini -- <prog>

then killing unshare will not cause tini to be killed. Since util-linux
v2.32, unshare has an option "--kill-child=<SIGNAL>" that will set up
the parent death signal for the forked process. This does not help
though in case either SELinux or AppArmor are in use and credentials of
the forked process change (e.g. by changing its UID), as these LSMs will
clear the parent death signal again. The following example would trigger
that situation:

    $ unshare --pid --fork setpriv --reuid user tini -s -- <prog>

The parent death signal will get reset by the LSMs as soon as `setpriv`
switchets its user ID to that of "user", and killing unshare will again
not result in tini being killed. The new '-p' flag helps that exact
scenario:

    $ unshare --pid --fork setpriv --reuid user tini -s -p SIGKILL -- <prog>

As soon as unshare is getting killed, tini will get signalled SIGKILL
and exit as well, tearing down <prog> with it.
2018-04-19 16:25:15 +01:00
Thomas Orozco 5b117de7f8 Bump version to 0.17.0 2018-02-18 17:15:03 +01:00
Thomas Orozco bd2249636a
Merge pull request from krallin/expect-status-code
Add -e flag to a expect a given exit code
2018-02-18 16:36:55 +01:00
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: 
2018-02-18 16:20:20 +01:00
Thomas Orozco 3da8adc10a
Merge pull request from zimbatm/warn-on-reap
add a -w option to warn on reaping children
2018-02-18 16:12:18 +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 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 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 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