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

healthcheck: set appropriate defaults for interval, timeout and retries #225

Closed
wants to merge 1 commit into from

Conversation

flouthoc
Copy link
Contributor

Set appropriate defaults for --interval, --timeout and --retries when
processing a Containerfile with build format as docker.

See: https://docs.docker.com/engine/reference/builder/#healthcheck
Closes: containers/podman#13912

Set appropriate defaults from interval, timeout and retries when
processing a Containerfile with build format as docker.

See: https://docs.docker.com/engine/reference/builder/#healthcheck
Closes: containers/podman#13912

Signed-off-by: Aditya R <[email protected]>
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Apr 19, 2022

@flouthoc: all tests passed!

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@flouthoc
Copy link
Contributor Author

@nalind @rhatdan @TomSweeneyRedHat PTAL

@rhatdan
Copy link
Contributor

rhatdan commented Apr 19, 2022

/approve
LGTM
@nalind @giuseppe PTAL

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Apr 19, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: flouthoc, rhatdan

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 19, 2022
@nalind
Copy link
Member

nalind commented Apr 19, 2022

The new test Dockerfile should also be added to the TestConformanceInternal() function in dockerclient/conformance_test.go, and that test needs to be run manually to ensure that it's not a conformance breaker. Pending that, LGTM.

Test: []string{"CMD-SHELL", "/app/check.sh --quiet"},
},
},
},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm probably overthinking, but I just wonder if we're starting to brush up against DockerHub rate limits. No need to adjust, just thought I'd put that thought out there.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We tend to use one of a handful of base images for various tests, and the docker daemon hangs on to them between tests, but you're not wrong to be concerned that it will become a problem at some point.

@TomSweeneyRedHat
Copy link
Contributor

LGTM, once @nalind 's concerns are addressed.

@flouthoc flouthoc marked this pull request as draft April 20, 2022 09:38
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Apr 20, 2022
@flouthoc
Copy link
Contributor Author

It is documented here https://docs.docker.com/engine/reference/builder/#healthcheck that --interval is a dockerfile default but looks like docker injects these defaults while creating the container and not in image. So this PR is replaced by containers/podman#13928

I have also verified this against conformance tests so this PR must not go in and alt is: containers/podman#13928

@flouthoc flouthoc closed this Apr 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

healthcheck never executes when Dockerfile lacks --interval
4 participants