Grype docker image on dockerhub has no shell commands available to be able to keep it alive for Jenkins exec into scan with it - please add busybox at least #1287
Labels
bug
Something isn't working
changelog-ignore
Don't include this issue in the release changelog
good-first-issue
Good for newcomers
What happened:
I'm running Jenkins on Kubernetes and am trying to include the grype docker image into the jenkins pod, for which I usually use a simple command like
cat
to keep the docker container alive so that Jenkins pipelines can exec into the container and run the command to do a scan or build or whatever.I've found that the grype docker image is so stripped down, it doesn't even have busybox to be able to do this.
I've used this pattern successfully with Trivy before (the Trivy docker image contains busybox) and am now trying to do exactly the same thing with Grype:
My production pod yaml looks very similar to this:
https://github.com/HariSekhon/Kubernetes-configs/blob/master/jenkins/base/jenkins-agent-pod.yaml
What you expected to happen:
I expected the cat command to succeed and keep the container alive so that Jenkins could exec into it to run a scan.
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Environment:
grype version
:cat /etc/os-release
or similar):The text was updated successfully, but these errors were encountered: