From dd0c3982b0319a4dfc729ea024989e5c12b94d1f Mon Sep 17 00:00:00 2001 From: Dorian Date: Mon, 30 Mar 2026 22:19:46 +0100 Subject: [PATCH] fix: use python3 socket health check for electrumx (no curl in image) The electrumx container image doesn't include curl. Replace the HTTP health check with a Python socket connection test to the RPC port. Co-Authored-By: Claude Opus 4.6 (1M context) --- scripts/container-specs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/container-specs.sh b/scripts/container-specs.sh index 518f042f..8b6b9698 100755 --- a/scripts/container-specs.sh +++ b/scripts/container-specs.sh @@ -165,7 +165,7 @@ load_spec_electrumx() { SPEC_PORTS="50001:50001" SPEC_VOLUMES="/var/lib/archipelago/electrumx:/data" SPEC_MEMORY="$(mem_limit electrumx)" - SPEC_HEALTH_CMD="curl -sf http://localhost:8000/ || exit 1" + SPEC_HEALTH_CMD="python3 -c 'import socket; s=socket.create_connection((\"localhost\",8000),2); s.close()' || exit 1" SPEC_ENV="DAEMON_URL=http://$BITCOIN_RPC_USER:$BITCOIN_RPC_PASS@bitcoin-knots:8332/ COIN=Bitcoin DB_DIRECTORY=/data SERVICES=tcp://:50001,rpc://0.0.0.0:8000" SPEC_TIER="1" SPEC_DATA_DIR="/var/lib/archipelago/electrumx"