-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
gradle tasks are stuck forever on ARM64 image builds #42
Comments
@balusarakesh Don't think that's a QEMU issue but the gradle daemon. You should avoid the Gradle daemon inside a Dockerfile so the process is terminated after build completion: FROM amazoncorretto:8u302
ENV GRADLE_OPTS=-Dorg.gradle.daemon=false
ENV APP_HOME=/usr/app/
WORKDIR $APP_HOME
COPY . .
RUN ./gradlew build --no-daemon -x :bootRepackage -x test --continue Edit: My bad just saw |
@balusarakesh |
also, we notice a weird phenomenon:
|
Would like to be sure if it works or not on standard GitHub Runner because I don't know how has been configured your self-hosted runner.
No but you can take a look at the BuildKit container logs and post them here.
Hum that doesn't feel like an issue with QEMU for me but something looks odd with Gradle. Can you post the full logs of the workflow and if you can give me the link to your repo. Thanks. |
here's a successful build which passed just now (I changed nothing except for enabling buildkit logs):
|
I need the whole logs not just |
You can set |
Can paper-plane-developers/paper-plane#284 be related? |
Behaviour
gradle build
is stuck forever while building ARM64 docker image usingimage: tonistiigi/binfmt:latest
Steps to reproduce this issue
summerwind/actions-runner-dind:v2.283.1-ubuntu-20.04-24602ff
:Dockerfile:
./gradlew build -x :bootRepackage -x test --continue
command finished running, we can see in the github action logs that the build passed but the runner doesn't proceed to the next stepecho "hello"
. We exec into the runner pod and noticed that thegradlew
command is still running, for some reason the command exit code is not being received by theqemu
process OR might be some other issueExpected behaviour
./gradlew build -x :bootRepackage -x test --continue
command should finish and the build should proceed to the next stepecho "hello"
Actual behaviour
Logs

issue.workaround
qemu-v6.0.0-12
fixed the issue:The text was updated successfully, but these errors were encountered: