mirror of
https://github.com/mageddo/dns-proxy-server.git
synced 2026-04-25 17:35:54 +03:00
[GH-ISSUE #331] Include wget command in image for healthcheck #118
Labels
No labels
bug
confirmed
discussion
duplicate
enhancement
feature
feature-request
not-planned
pull-request
secondary-feature
stale
triage
waiting-feedback
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/dns-proxy-server-mageddo#118
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @gjrtimmer on GitHub (Mar 1, 2023).
Original GitHub issue: https://github.com/mageddo/dns-proxy-server/issues/331
What is expected
wget command to be available so healthcheck can be used
What is Happening
wget command not included in image
Changes (Optional)
Please add wget command to image.
docker-compose.yml healthcheck
@mageddo commented on GitHub (Mar 2, 2023):
Hey, it's an DPS acceptance criteria to have a minimal docker image, so add wget to the image will increase its size, I think healthcheck is not a must have, but a nice to have feature unless it's causing some bug, I'm not inclined to add such feature because it will against DPS acceptance criteria.
You are able to create an extended image and configure the healthcheck if you really need it for your use case though.
@gunar commented on GitHub (Mar 7, 2023):
@gjrtimmer I've been having some success with this:
@mageddo is there any other way you might recommend doing a healthcheck?
@mageddo commented on GitHub (Mar 12, 2023):
@gunar yeah, it must do the job as you are using
dps.dockerhostname it means that if you are solving that name then DPS is working and 53 port is listening.On the future I may consider implement some more complete health and embed it at the container without have to install new commands to the container using some native Linux communication between sh and the process maybe signals, named pipes or even tcp .
Just a draft I've made some tests using your command:
https://www.linuxjournal.com/content/more-using-bashs-built-devtcp-file-tcpip
@mageddo commented on GitHub (Mar 12, 2023):
In the meanwhile I think we should consider to add a command like yours at the healthcheck