You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description of the issue: The jib-gradle-plugin is not replacing the given platform config but adding to an existing collection[1]. Jib-core requires exactly one in the collection[2].
Side note: I realize multi-platform builds are not supported yet. I'm just trying to do a single non-amd64 build.
Working on fixing this. The current workaround is to use the digest of the arm64/linux image. In your case, based on the amazoncorretto:11 manifest list,
Environment:
Description of the issue: The jib-gradle-plugin is not replacing the given platform config but adding to an existing collection[1]. Jib-core requires exactly one in the collection[2].
Side note: I realize multi-platform builds are not supported yet. I'm just trying to do a single non-amd64 build.
BTW, Thanks for the great tool!
[1] https://github.com/GoogleContainerTools/jib/blob/master/jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gradle/PlatformParametersSpec.java#L45
[2] https://github.com/GoogleContainerTools/jib/blob/master/jib-core/src/main/java/com/google/cloud/tools/jib/api/JibContainerBuilder.java#L597
Expected behavior:
Jib should download the arm64-based base image and build.
Steps to reproduce:
./gradlew bootJar jibDockerBuild
jib-gradle-plugin
Configuration:Log output:
Additional Information:
The platforms collection has 2 items even though I'm only specifying 1 in the config. I'm not a gradle internals dev, but I'm assuming this gets invoked regardless of if I try to override it in the config or not: https://github.com/GoogleContainerTools/jib/blob/master/jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gradle/BaseImageParameters.java#L48
The text was updated successfully, but these errors were encountered: