-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Conversation
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. |
jib-core/src/main/java/com/google/cloud/tools/jib/builder/steps/WriteTarFileStep.java
Outdated
Show resolved
Hide resolved
jib-core/src/main/java/com/google/cloud/tools/jib/image/Image.java
Outdated
Show resolved
Hide resolved
jib-core/src/main/java/com/google/cloud/tools/jib/image/Image.java
Outdated
Show resolved
Hide resolved
jib-core/src/main/java/com/google/cloud/tools/jib/image/Image.java
Outdated
Show resolved
Hide resolved
jib-core/src/main/java/com/google/cloud/tools/jib/image/Image.java
Outdated
Show resolved
Hide resolved
jib-core/src/main/java/com/google/cloud/tools/jib/image/Image.java
Outdated
Show resolved
Hide resolved
jib-core/src/main/java/com/google/cloud/tools/jib/image/json/ImageToJsonTranslator.java
Outdated
Show resolved
Hide resolved
jib-core/src/main/java/com/google/cloud/tools/jib/image/json/ImageToJsonTranslator.java
Outdated
Show resolved
Hide resolved
jib-core/src/main/java/com/google/cloud/tools/jib/image/json/ImageToJsonTranslator.java
Outdated
Show resolved
Hide resolved
...core/src/main/java/com/google/cloud/tools/jib/image/json/ContainerConfigurationTemplate.java
Show resolved
Hide resolved
jib-core/src/main/java/com/google/cloud/tools/jib/configuration/DockerHealthCheck.java
Outdated
Show resolved
Hide resolved
jib-core/src/main/java/com/google/cloud/tools/jib/configuration/DockerHealthCheck.java
Outdated
Show resolved
Hide resolved
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. |
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. |
jib-core/src/main/java/com/google/cloud/tools/jib/configuration/DockerHealthCheck.java
Outdated
Show resolved
Hide resolved
jib-core/src/main/java/com/google/cloud/tools/jib/configuration/DockerHealthCheck.java
Outdated
Show resolved
Hide resolved
jib-core/src/main/java/com/google/cloud/tools/jib/image/Image.java
Outdated
Show resolved
Hide resolved
...core/src/main/java/com/google/cloud/tools/jib/image/json/ContainerConfigurationTemplate.java
Outdated
Show resolved
Hide resolved
jib-core/src/main/java/com/google/cloud/tools/jib/image/json/ImageToJsonTranslator.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this 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.
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.