mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-01 05:14:54 +00:00

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>
13 lines
136 B
Bash
Executable File
13 lines
136 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
##
|
|
# For volume mounts...
|
|
##
|
|
chown -R frr:frr /etc/frr
|
|
/etc/init.d/frr start
|
|
|
|
# Sleep forever
|
|
exec tail -f /dev/null
|