]> git.puffer.fish Git - mirror/frr.git/commit
docker: Use tini unilaterally and stop tailing /dev/null
authorWesley Coakley <w@wesleycoakley.com>
Wed, 9 Jun 2021 03:50:43 +0000 (23:50 -0400)
committerIgor Ryzhov <iryzhov@nfware.com>
Fri, 18 Jun 2021 14:00:31 +0000 (17:00 +0300)
commitd8e76090b71422b611013d26e5d6104962f870c7
tree898f911148bf9618d9e3f1a46b3329c2a0078bac
parentb88433b121b948ad24f84fd312a3a4482638ceed
docker: Use tini unilaterally and stop tailing /dev/null

tini is a hyper-minimal PID 0 which spawns a child process (watchfrr.sh
in our case), reaps zombies and forwards signals to the script. Starting
watchfrr.sh directly instead of through the old `tail /dev/null` or
`sleep 365d` helps keep things clean too :)

While tini was previously only used in the Alpine container it is useful
to apply this PID 0 to all containers except the special CI ones.

Fixes: #8788
Signed-off-by: Wesley Coakley <w@wesleycoakley.com>
docker/alpine/Dockerfile
docker/alpine/docker-start
docker/centos-7/Dockerfile
docker/centos-7/docker-start
docker/centos-8/Dockerfile
docker/centos-8/docker-start
docker/debian/Dockerfile
docker/debian/docker-start