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

Add curl package to docker image #82869

Open
gelicia opened this issue Feb 15, 2024 Discussed in #60936 · 1 comment
Open

Add curl package to docker image #82869

gelicia opened this issue Feb 15, 2024 Discussed in #60936 · 1 comment
Labels

Comments

@gelicia
Copy link
Contributor

gelicia commented Feb 15, 2024

Discussed in #60936

Originally posted by perrfect January 3, 2023
Hello.
Please add curl package to grafana docker image.

I use docker image - grafana/grafana-oss:latest in a docker-compose file. And also use the next healthcheck:

    healthcheck:
      test: ["CMD-SHELL", "wget --quiet --tries=1 --spider http://localhost:3000/api/health || exit 1"]
      interval: 1s
      timeout: 3s
      retries: 30

Everything works fine, but healthecheck all time generates errors in logs, which look like this:

level=error msg="Request error" error="Context.HTML:write tcp 127.0.0.1:3000->127.0.0.1:46474: write: broken pipe
level=error msg="Request error" error="Context.HTML:write tcp 127.0.0.1:3000->127.0.0.1:46531: write: broken pipe

It is happening, because wget returns the next response:
wget: can't open 'health': Permission denied

I can use curl instead wget for the healthchek, but this package didn't install in the docker image and I want to use your image, not my own with preinstall curl.

@grafanabot
Copy link
Contributor

@gelicia please add one or more appropriate labels. Here are some tips:

  • if you are making an issue, TODO, or reminder for yourself or your team, please add one label that best describes the product or feature area. Please also add the issue to your project board. 🚀

  • if you are making an issue for any other reason (docs typo, you found a bug, etc), please add at least one label that best describes the product or feature that you are discussing (e.g. area/alerting, datasource/loki, type/docs, type/bug, etc). Our issue triage doc also provides additional guidance on labeling. 🚀

Thank you! ❤️

@grafanabot grafanabot added the internal for issues made by grafanistas label Feb 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants