test(infra): NAT fixture healthcheck uses bash /dev/tcp — the opc-plc image has no netstat (#813)

This commit is contained in:
Joseph Doherty
2026-11-10 22:54:00 -05:00
parent 88c05cc01a
commit 273023144b
@@ -41,7 +41,9 @@ services:
# this server's cert) is deliberately not automatic — that is what the secure test pins.
- "--aa"
healthcheck:
test: ["CMD-SHELL", "netstat -an | grep -q ':50000.*LISTEN' || exit 1"]
# The image ships no netstat (the sibling ../docker-compose.yml healthcheck is permanently "unhealthy" for that
# reason); bash's /dev/tcp is there.
test: ["CMD", "bash", "-c", "exec 3<>/dev/tcp/127.0.0.1/50000"]
interval: 5s
timeout: 2s
retries: 10