-
Notifications
You must be signed in to change notification settings - Fork 141
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
Issues running cgr.dev/chainguard/apko in Gitlab CI: missing sh in image causes problems #1550
Comments
It's a GitLab functional suitability quality defect. See: https://gitlab.com/gitlab-org/gitlab-runner/-/issues/26501 |
What GitLab CI/CD Runner do you use? The Docker Runner on SaaS, I presume? Otherwise, you can configure your GitLab CI/CD Runner to not override the entrypoint with |
Hello, I have the same issue docker run -ti --rm --entrypoint /bin/bash cgr.dev/chainguard/apko
docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: exec: "/bin/bash": stat /bin/bash: no such file or directory but in a different context: I'm using this Dagger module, and I run commands under the container. |
Thanks for the link. However, there may be instances where fixing this on the Gitlab side may not be possible. So it would be nice to have the official image work with GitlabCI (or have a second image just containing a usable shell). In the meantime I built my own image to not be blocked by this, but having an official image would be nice... |
Dear maintainers,
I am trying to use the "official"
cgr.dev/chainguard/apko
image in Gitlab CI, but fail to get it working.No matter what I try, I cannot get it to succeed, as Gitlab seems to require a shell inside the image. Omitting the
script
tag is not possible. Putting the full build command into thescript
tag fails, even with an emptyentrypoint
.The error is always something along the lines of
unable to start container process: exec: "sh": executable file not found in $PATH
I tested with the "old" one from
ghcr.io/chainguard-dev/apko
first, which starts but then fails due to being outdated (some new signatures being used).Is there a way to do this properly? Or is there an offical image with a shell (other than the restricted latest-dev image)?
Kind Regards,
Johannes
The text was updated successfully, but these errors were encountered: