Files
poc-frr-anycast/entrypoints/client-entrypoint.sh
T

9 lines
286 B
Bash
Raw Normal View History

#!/bin/sh
# Client containers get their IP from Docker (compose ipv4_address), but the
# client network is `internal: true` so there's no Docker-provided gateway -
# point the default route at the local B-router instead.
set -e
ip route add default via "$GATEWAY"
exec sleep infinity