-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Shell missing in /bin/sh
#1919
Comments
What version of the image are you using? I believe this was fixed in #1748, with this line: kaniko/deploy/Dockerfile_debug Line 79 in 09e70e4
I can also use /bin/sh with the latest commit-tagged image, though that change may not yet be present in :latest
|
I do not want to create one more issue, so I found the most (probably) related one. I use Kaniko at GitLab: image:
name: gcr.io/kaniko-project/executor:v1.9.0-debug and there is no shell available. E.g. I can not write something like Is is an expected behavior? UPDATE This is not documented, but you must use # .gitlab-ci.yml
job_name:
script:
- /busybox/sh my_script.sh |
There is |
This is a clear regression at some point between Feb 2022 and now. Note the response above:
That indeed works. It's also an image from Feb 15, 2022 The same command attempted with v1.16.0
Note that
This is an issue with GitLab kubernetes executor which must use sh to setup scripts. I've burned a day on making this work, and the two solutions that seem most promising right now are:
|
Correction - this is a difference between the
Is this intentional? It seems counter-intuitive that -debug container is the one that works out of the box (with the GitLab kubernetes runners) |
Hi there, I am using bitbucket pipelines and would like to use Kaniko for a pipeline.
I am following this guide which describes using the Kaniko debug image with Gitlab, specifying the entry point as
/busybox/sh
:https://medium.com/01001101/enhance-your-docker-image-build-pipeline-with-kaniko-567afb6cf97c
Sadly there is no option in Bitbucket to set the entrypoint, bitbucket assumes a shell will be present at
/bin/sh
so I can't execute an official Kaniko image in Bitbucket pipelines. It seems like a lot of tools for Docker and k8s expect a shell to be present at/bin/sh
(nerdctl, docker cli and lens all come to mind).Is there any possibility of putting a shell into the Kaniko debug image at
/bin/sh
?The text was updated successfully, but these errors were encountered: