Reset ENTRYPOINT, run kaniko in CMD block #1651
Labels
area/container
For all bugs related to the kaniko container
kind/enhancement
New feature or request
priority/p3
agreed that this would be good to have, but no one is available at the moment.
Actual behavior
Kaniko executor as
ENTRYPOINT
makes it hard to use the image for CI pipelines (e.g. GitLab). You have to reconfigure the entrypoint to/bin/sh
or reset its value usingENTRYPOINT []
.Expected behavior
The image should be usable with CI systems such as GitLab CI or GitHub Actions out-of-the-box (e.g. use an entrypoint script, fall back to
/bin/sh
when that is overridden, only useCMD
to run kaniko for convenience or don't run kaniko by default at all).A resulting CI setup would be simpler, e.g.
To Reproduce
Steps to reproduce the behavior:
debug
image with GitLab or GHA (e.g.image: gcr.io/kaniko-project/executor:default
) without reconfiguring theentrypoint
ENTRYPOINT
andCMD
(or setENTRYPOINT []
)Triage Notes for the Maintainers
--cache
flagThe text was updated successfully, but these errors were encountered: