Skip to content

Best way of adding a Shell to an Paketo-Spring-Boot-Image #314

Answered by dmikusa
yannick1608 asked this question in Q&A
Discussion options

You must be logged in to vote

I can totally sympathize here. Not having the shell is an enormous pain.

Using a different run-image that already includes a shell. Does anyone have recommendations for such an image that would be suitable for development?

If you need one, the simplest thing is to rebuild and switch from the paketobuildpacks/builder-jammy-tiny builder to the paketobuildpacks/builder-jammy-base builder (similar switch to the run image, paketobuildpacks/run-jammy-base). The base image has a slightly larger set of packages (about 50M larger). It includes bash, so you have a shell accessible.

Alternatively, is there a specific buildpack that could install a shell within the container?

This would be intere…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by yannick1608
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants