-
Notifications
You must be signed in to change notification settings - Fork 40.2k
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
Image building hangs when builder and buildpack are configured #40697
Comments
It works on my machine, though. Both projects work fine with Env:
|
Thanks @mhalbritter for the feedback. I've done some more testing. I have tried the following scenarios and they all worked fine, based on Docker Desktop 4.30.0 (Docker Engine 26.1.1).
I get the error in the following scenarios. I wonder if it's something related to the older Docker version or something specific to the VM images used by GitHub.
|
Thanks for the feedback. The failures on CI are reproducible, and not some flaky internet connection, right? |
@mhalbritter yes, the failure on GitHub Actions (Ubuntu 22.04) and GitHub Codespaces (Ubuntu 20.04) is reproducible and happens consistently. |
I also tried the build on newer GitHub runners (Ubuntu 24.04, Docker 26.1.0) and the outcome is the same: the build hangs indefinitely. Example: https://github.com/ThomasVitale/supply-chain-security-java/actions/runs/9059907830/job/25092379764 |
I'm working with @NotBjoggisAtAll I'm validating things on my side as well, I'm not running into the issue on any of my environments. Here is my Spring Boot Maven Plugin config:
It's working for me on Github with this pipeline, using both Java 21 and Java 22:
It's also working for me consistently on CircleCI (ARM64) with this config, Java 21 and Java 22:
It also works locally on all of my machines, I haven't been able to reproduce this issue yet. I'm using this repo to experiment with: https://github.com/dashaun-io/io.dashaun.service.gateway @ThomasVitale Lets find some time to pair on this! |
I have a pipeline using the new buildpacks and I have issues with one of them. Works fine on Windows 11. Github action workflow
pom plugin setup:
|
I have extended my sample repo to include GitHub Actions pipelines on Ubuntu 20.04, Ubuntu 22.04 and 24.04 (AMD64). The build works on 20.04 and 24.04, but it fails on 22.04. GitHub Runners Specs: I have also added a DevContainer specification to easily open the project in GitHub Codespaces, which use Debian 11 Bullseye (and Docker 24). The build fails there, too. Notice: it's only the regular Java build that has issues. When building a native image, I haven't experienced any issue. @dashaun I'm available to pair on this! |
Tested on other distros also running on arm64 that works. Ubuntu 24.04 LTS For me its regular java and native image that have issues. |
The Paketo Buildpacks project is now publishing multi-arch buildpacks for Java and Java Native Image. They both works great to containerize Spring Boot applications (3.2.5, 3.3.0-M1, 3.3.0-SNAPSHOT) when using the pack CLI.
However, when using the Spring Boot plugin (Gradle or Maven), the build only works on ARM64 architectures whereas it gets stuck indefinitely when running on AMD64 architectures (at least on Linux. I hope I'll get to test this on Windows as well and update this issue with more info).
I have created a repo with two examples to demonstrate the problem: https://github.com/ThomasVitale/buildpacks-demo.
The task gets stuck after pulling the buildpack image. It will only stop when forcefully shut down (on GitHub Actions that happens after 6 hours by default).
The text was updated successfully, but these errors were encountered: