-
Notifications
You must be signed in to change notification settings - Fork 558
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
Cosign 2.2.1 Docker image missing /bin/sh #3361
Comments
This was intentional, we switched to a newer distroless base image without a shell. I’m open to adding it back, but I believe this could be refactored to not need a shell. Thoughts @cpanato @hectorj2f? |
It seems a shell is needed to run Cosign from a GitLab CI pipeline. For the same reason, I use the
|
@Fredouye You could use |
@Fredouye I'll take a look at creating a |
Yes, @haydentherapper is right! You should be able to run it in a multi-step process as an alternative solution. Also there is a typo in your script |
@imjasonh, is it possible to create two containers using ko where all configuration but the base images are different, while also controlling the name of the container (one to be Concretely, I would like the following config to work, but I don't think it does, because I can't specify the same
|
@haydentherapper We could also revert the baseImage to this one #3250. |
This is already the case in my GitLab CI pipeline (which is using Vault client, Hadolint, Gitleaks, Kaniko, Trivy, Crane and Cosign as a last step). Using |
Maybe moving from |
Sorry I'm not super familiar here. Do all gitlab CI steps run off a shell directly if there any script directives? |
I'd ideally like to release two images, though I'm not familiar with |
it cannot generate two images but we can build as the release pipeline two images :) I will work on that |
Hello! |
It'll be once we cut a new release. Let's target end of week to give us a chance to merge open PRs. |
Thanks for the 2.2.2 release, |
Description
Cosign 2.2.1 does not include the
sh
executable, and fails to run through a GitLab CI pipeline.Extract of
.gitlab-ci.yml
:Result :
Downgrading to Cosign 2.2.0 fixes the issue.
By the way, Cosign 2.2.1 Docker image is much smaller than 2.2.0 (107 Mb instead of 124 Mb).
Version
Cosign 2.2.1 Docker image (
gcr.io/projectsigstore/cosign:v2.2.1
).The text was updated successfully, but these errors were encountered: