chainguard-images / images

Public Chainguard Images
https://chainguard.dev/chainguard-images
Apache License 2.0
519 stars 133 forks source link

[Image Request]: node image with bash? #2742

Open kastl-ars opened 1 month ago

kastl-ars commented 1 month ago

What software would you like us to add to our image catalog? (one per issue please)

I found the chainguard:node image and could successfully base my own image on it. Except that it won't run, as the application's start scripts are bash-based, while the node image only contains POSIX sh.

As per design, the node image does not contain a apk package manager, so it is not possible to just install bash in it.

As there is a lot of thought going into the node image I do not think it is wise to replicate that and start from an image with a package manager.

So, as a proposal, would it be possible to add a flavor of the node image with bash included?

(I do not yet understand the build process enough to judge if this means maintaining a copy of the node image configuration or if this could easily be extended)

Thanks in advance Johannes

which versions of the containerized software do you need?

No response

Add some justification for why this specific image and versions are important.

No response

amouat commented 1 month ago

If you use the node:latest-dev image you should find apk is included and you can install bash.

kastl-ars commented 1 month ago

Thanks for the info, Adrian. But isn't that an anti-pattern? Then I'll end up with an image containing apk?