After start the project, I can't connect to the container using docker exec -it sb-repro [bash | sh]. The error:
OCI runtime exec failed: exec failed: unable to start container process: exec: "bash": executable file not found in $PATH: unknown
Is any shell available? Or is it needed to explicitly add some buildpack here?
To build your container image, you used this specific buildpack:
and you also used the GraalVM Native build tool:
If you look at the Gradle Spring Boot plugin documentation, you'll notice that using the build tool makes the plugin use
paketobuildpacks/builder-jammy-tiny:latestinstead ofpaketobuildpacks/builder-jammy-base:latest:And to make the image size smaller, the
tinyvariant does not embed common Unix tools such asbashnorsh- which makes the built images even more secure (smaller attack surface) - but less debugable too...I suggest you debug using the
paketobuildpacks/builder-jammy-base:latestbase image, run your build withor updating your
build.gradle.ktswith: