test(infra): plain opc-plc fixture healthcheck uses bash /dev/tcp (#817)

The opc-plc image ships no netstat, so the old check left otopcua-opc-plc
permanently unhealthy. Same probe as the NAT fixture (27302314). Redeployed
to /opt/otopcua-opcuaclient on the shared docker host; reports healthy.
This commit is contained in:
Joseph Doherty
2026-11-11 01:32:38 -05:00
parent 8e8408a9ca
commit bde6cce2fc
@@ -38,7 +38,9 @@ services:
# opc-plc doesn't expose an HTTP health endpoint by default; use a TCP
# probe via a shell the base image ships with. The fixture does its own
# TCP probe but healthcheck surfaces status in `docker ps` for humans.
test: ["CMD-SHELL", "netstat -an | grep -q ':50000.*LISTEN' || exit 1"]
# #817: bash's /dev/tcp, NOT netstat — the image ships no netstat, so the old
# `netstat -an | grep` check left the container permanently "unhealthy" (same fix as nat/, 27302314).
test: ["CMD", "bash", "-c", "exec 3<>/dev/tcp/127.0.0.1/50000"]
interval: 5s
timeout: 2s
retries: 10