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

Dockerfile: add curl to dockerfile for health check purposes #31018

Closed
wants to merge 1 commit into from

Conversation

tornadocontrib
Copy link

Please add CURL command line tool for health checking purpose on docker ( and it is also useful to test if the container is reachable to network )

@fjl fjl changed the title Add curl to dockerfile for health check purpose Dockerfile: add curl to dockerfile for health check purposes Jan 14, 2025
@fjl
Copy link
Contributor

fjl commented Jan 14, 2025

We would like to keep the container image as minimal as possible. If you require another tool in the image, you will have to create your own image based on ours.

@fjl fjl closed this Jan 14, 2025
@tornadocontrib
Copy link
Author

@fjl Yes I just found that it is better to use geth IPC console for the purpose

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

@tornadocontrib tornadocontrib deleted the patch-1 branch January 15, 2025 20:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants