-
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 Support for use CMD to start container #924
Comments
Hi @swift1911, Let me check if I understood you correctly: you don't want Jib to overwrite the entrypoint and CMD, and you want Jib to just inherit and use the entrypoint and CMD that whatever base image has, right? |
@chanseokoh Yes, this is the meaning |
Now the question is, where/how to indicate Jib to not overwrite the entrypoint and CMD, e.g., a new configuration parameter or a system property? |
@chanseokoh i think that a a new configuration parameter is better |
Hi @swift1911 , what is the specific entrypoint (full container entrypoint) that you would like to run your container with? We are trying to understand your use case. |
@coollog this is my Dockerile, i want to use s6-overlay to init and handle pid 1,if jib use entrypoint to run java application, it will override my init
|
@swift1911 so you're expected execution is something like?
|
@loosebazooka yes |
Hi @swift1911, have you tried using the <container>
<entrypoint>/init</entrypoint>
</container> |
@coollog in some condition, /init command might be replace by other, hard code /init in jib may cause tech debt |
The feature to inherit Gradle: |
I use supervise like s6-overlay to handle PID 1 for container, jib plugin use entrypoint to start container and overwrite my baseimage entrypoint, so i want to use CMD to start jib generated container
like this:
The text was updated successfully, but these errors were encountered: