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 Healthcheck to ContainerConfigurationTemplate #1217

Merged
merged 26 commits into from
Nov 30, 2018
Merged

Conversation

TadCordle
Copy link
Contributor

This doesn't change any behavior yet, just prepares for #676.

Adds Healthcheck fields to the container configuration json template + Image class. This field is left empty for OCI images since OCI does not support healthcheck currently.

@coollog
Copy link
Contributor

coollog commented Nov 5, 2018

I think we could get this in even if we decide to not support it in the plugins since it still gives the Jib Core users control over this portion of the Docker container config.

@TadCordle
Copy link
Contributor Author

I'm actually realizing now that this API design is probably not the best if we aren't exposing this to library users; if all we're doing is propagating from base image, using different builders instead of just a setter to propagate the command is going to be a pain. So I'm going to pause on this until we figure that out.

@TadCordle
Copy link
Contributor Author

Actually, we can probably move forward with this so we can implement the base image propagation, and simplify later if necessary when we have a final decision on jib-core support.

Copy link
Contributor

@coollog coollog left a comment

Choose a reason for hiding this comment

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

LGTM will have someone else approve.

@coollog coollog requested a review from a team November 30, 2018 16:15
@TadCordle TadCordle requested a review from a team November 30, 2018 17:31
@TadCordle TadCordle merged commit f59326e into master Nov 30, 2018
@TadCordle TadCordle deleted the i676-healthcheck branch November 30, 2018 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants