Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include CURL on docker release image for health check purpose #13417

Open
tornadocontrib opened this issue Jan 14, 2025 · 1 comment · May be fixed by #13418
Open

Include CURL on docker release image for health check purpose #13417

tornadocontrib opened this issue Jan 14, 2025 · 1 comment · May be fixed by #13418

Comments

@tornadocontrib
Copy link

Docker release images should have curl tool bundled like images built from source.

I personally use the following healthcheck script on docker and it is very useful when you want externalcl to connect only when the auth port is opened.

healthcheck:
    test: ["CMD-SHELL", "curl -X POST -H \"Content-Type: application/json\" --data \"{\"jsonrpc\":\"2.0\",\"method\":\"eth_blockNumber\",\"params\":[],\"id\":67}\" http://localhost:8545"]
    interval: 30s
    timeout: 5s
    retries: 10
    start_period: 20s

depends_on:
    erigon:
        condition: service_healthy
@tornadocontrib tornadocontrib linked a pull request Jan 14, 2025 that will close this issue
@tornadocontrib
Copy link
Author

This works great on geth though

healthcheck:
      test: ["CMD-SHELL", "geth attach --exec 'net.peerCount'"]
      interval: 30s
      timeout: 5s
      retries: 10
      start_period: 20s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant