From 77a91fefc1bba54f762f7bb7e750b23efa19f90a Mon Sep 17 00:00:00 2001 From: Pawel Peregud Date: Wed, 28 Aug 2024 16:27:41 +0200 Subject: [PATCH] apitest: speedup env termination by enabling zombie process reaping * use `exec` when starting multideployer * run services that struggle with reaping with dedicated PID 1 process (https://blog.phusion.nl/2015/01/20/docker-and-the-pid-1-zombie-reaping-problem/) --- localenv/docker-compose.yaml | 2 ++ localenv/multideployer/entrypoint.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/localenv/docker-compose.yaml b/localenv/docker-compose.yaml index c5ccd7dc10..5ca0e1076b 100644 --- a/localenv/docker-compose.yaml +++ b/localenv/docker-compose.yaml @@ -28,6 +28,7 @@ services: ethereum: localhost:http://anvil:8545 GRAPH_LOG: debug ETHEREUM_REORG_THRESHOLD: 0 + init: true ipfs: image: ipfs/kubo:v0.27.0 @@ -74,6 +75,7 @@ services: IPFS_URL: http://ipfs:5001 SUBGRAPH_ADMIN_URL: http://graph-node:8020 SUBGRAPH_QUERY_URL: http://graph-node:8000 + init: true networks: octant: diff --git a/localenv/multideployer/entrypoint.sh b/localenv/multideployer/entrypoint.sh index 59ab1d93e1..88182cff15 100755 --- a/localenv/multideployer/entrypoint.sh +++ b/localenv/multideployer/entrypoint.sh @@ -18,4 +18,4 @@ wait_for_rpc echo "" echo "anvil is ready!" -python3 /app/server.py +exec python3 /app/server.py