-
Notifications
You must be signed in to change notification settings - Fork 41.1k
Image builds with podman fail when image buildpacks are configured #34324
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
Comments
@Janrupf Thanks for the report. I can reproduce this error when using the configuration that you've shown above. If I remove the |
Yes, removing the configuration works. Interestingly, the following configuration also works (I only changed the version numbers): buildpacks.set(listOf(
"gcr.io/paketo-buildpacks/ca-certificates:3.5.1",
"gcr.io/paketo-buildpacks/bellsoft-liberica:9.10.3",
"gcr.io/paketo-buildpacks/syft:1.24.2",
"gcr.io/paketo-buildpacks/executable-jar:6.6.0",
"gcr.io/paketo-buildpacks/spring-boot:5.22.1"
)) I additionally noticed that now my builds succeed, the image can apparently not be found whatsoever after building (the build succeeds, but the image does not exist). However, this probably is a separate issue (with podman?) or even some problem with my scripts. |
Thanks for following up.
If you use the pack CLI to inspect the builder image with When the Spring Boot plugin gets a list of buildpacks in its configuration, it will download each buildpack, compare it against buildpacks in the builder, and throw away any duplicate buildpack contents (see #31233 for the reason). So in your second example the buildpacks you specified are being used in the given order, but the buildpack contents are not being used. I suspect something is going wrong when downloaded buildpack contents are added to the base builder contents. I'll dig deeper and see what I can find out. |
Following the documentation on how to configure podman for spring boot I ended up using the following configuration in gradle:
This first appears to work, spring boot successfully communicates with the podman daemon and then pulls the buildpacks. However, when attempting to start the build the following error occurs:
This appears to be related to using podman, which according to the documentation is supported. Switching back to the official docker daemon is sadly not an option.
The text was updated successfully, but these errors were encountered: