Skip to content
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

Jib fails in jibBuildTar Gradle task when Multiple platforms are configured. #4318

Open
vct-app opened this issue Oct 9, 2024 · 0 comments

Comments

@vct-app
Copy link

vct-app commented Oct 9, 2024

Environment:

  • Jib version: 3.4.3
  • Build tool: Gradle 8.10
  • OS: Mac OS

Description of the issue:
When multiple platforms are configured, Jib fails in jibBuildTar Gradle task when the build is executed in Mac arm-64.

Caused by: com.google.common.base.VerifyException: multi-platform image building not supported when building a local tar image
 at com.google.common.base.Verify.verify(Verify.java:126)
 at com.google.cloud.tools.jib.builder.steps.StepsRunner.lambda$writeTarFile$19(StepsRunner.java:644)
 at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:131)
 at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:75)
 at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:82)

Below items are similar to this issue but don’t seem to be addressing this specific task:
#4249
#4268

Expected behavior:
Task should complete successfully.

Steps to reproduce:

  1. Configure multiple platforms, example: linux/amd64 and linux/arm64
  2. Execute ./gradlew jibDockerBuild
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants
@mpeddada1 @vct-app and others