Skip to content

Commit

Permalink
apitest: speedup env termination by enabling zombie process reaping
Browse files Browse the repository at this point in the history
* 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/)
  • Loading branch information
paulperegud committed Aug 28, 2024
1 parent 045a659 commit 77a91fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions localenv/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
2 changes: 1 addition & 1 deletion localenv/multideployer/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ wait_for_rpc
echo ""
echo "anvil is ready!"

python3 /app/server.py
exec python3 /app/server.py

0 comments on commit 77a91fe

Please sign in to comment.