]> git.puffer.fish Git - mirror/frr.git/commit
docker: prefer CMD to ENTRYPOINT 8482/head
authorWesley Coakley <wcoakley@nvidia.com>
Thu, 15 Apr 2021 00:48:59 +0000 (20:48 -0400)
committerWesley Coakley <wcoakley@nvidia.com>
Fri, 16 Apr 2021 17:05:44 +0000 (13:05 -0400)
commit3a33be132996f8477986a2dbbc8839cbbd27ab2a
tree8f7b7c8eb4d5942a0d9d7fd851efc3983e584a79
parent861ea6f2682f0ed1f3f4ea4fbb70bdb09a2ca536
docker: prefer CMD to ENTRYPOINT

Specifying watchfrr as CMD instead of ENTRYPOINT allows one to easily
override this command when starting a docker container. This allows
simple, manual testing via (e.g.) bash. With ENTRYPOINT only the
container will simply explode with an exit code if watchfrr exits.

For instance one could start a shell session in this container via:

```
docker run --name test --rm -i -t <frr-container> bash
```

The default behavior (`docker run <frr-container>` with no command
specified) is not changed.

Signed-off-by: Wesley Coakley <wcoakley@nvidia.com>
docker/alpine/Dockerfile
docker/centos-7/Dockerfile
docker/centos-8/Dockerfile
docker/debian/Dockerfile
docker/debian/docker-start
docker/ubuntu18-ci/Dockerfile
docker/ubuntu20-ci/Dockerfile