GoogleContainerTools / GoogleContainerTools/jib

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

Open
#4,318 0 comments 2 reactions 0 assignees View on GitHub
priority: p2 type: feature request
Dominant language
Java
Stars
14.5k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

**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:
https://github.com/GoogleContainerTools/jib/pull/4249
https://github.com/GoogleContainerTools/jib/pull/4268

**Expected behavior**:
Task should complete successfully.

**Steps to reproduce**:

1. Configure multiple platforms, example: `linux/amd64` and `linux/arm64`
2. Execute `./gradlew jibDockerBuild`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.