]> git.puffer.fish Git - mirror/frr.git/commit
docker: Use tini unilaterally and stop tailing /dev/null 8861/head
authorWesley Coakley <w@wesleycoakley.com>
Wed, 9 Jun 2021 03:50:43 +0000 (23:50 -0400)
committerWesley Coakley <w@wesleycoakley.com>
Wed, 16 Jun 2021 02:23:50 +0000 (22:23 -0400)
commit7266ad4588581bd3d6970dc78ff92bb312a0c63b
tree19c3ab40ae97ea98eeea9c6996e8bd2591c7d947
parent352cc841d897eb343f12d7f85c7f346ab3c29beb
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