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
Build silently ignores platforms that have been defined but the base image doesn't support.
Expected behavior:
Build should fail when a platform isn't available. docker buildx does so, i.e. error: failed to solve: amazoncorretto:17-alpine-jdk: no match for platform in manifest sha256:07d678945d7c61706739add66331f7bd4bd5e290aa6e0c7cbefc9379ac86b225: not found
Steps to reproduce:
./gradlew jib with configuration like below
jib-gradle-plugin Configuration:
jib {
to {
image ="someimage"
}
from {
// Any image that doesn't support arm64
image ="amazoncorretto:17-alpine-jdk"
platforms {
platform {
architecture ="amd64"
os ="linux"
}
platform {
architecture ="arm64"
os ="linux"
}
}
}
}
In our project, we added the platforms block expecting arm64 but found it to only support amd64
Environment:
Description of the issue:
Build silently ignores platforms that have been defined but the base image doesn't support.
Expected behavior:
Build should fail when a platform isn't available.
docker buildx
does so, i.e.error: failed to solve: amazoncorretto:17-alpine-jdk: no match for platform in manifest sha256:07d678945d7c61706739add66331f7bd4bd5e290aa6e0c7cbefc9379ac86b225: not found
Steps to reproduce:
./gradlew jib
with configuration like belowjib-gradle-plugin
Configuration:In our project, we added the platforms block expecting arm64 but found it to only support amd64
docker manifest inspect -v public.ecr.aws/aws-otel-test/aws-otel-java-spark:66141a5e34a68c1954f535ac5105457514917d5a
After some thunking, finally realized that the base image also needed to be updated for arm64
After adding to our base image
aws-observability/aws-otel-java-instrumentation@891a9f6
the image now has arm64 support as well
docker manifest inspect -v public.ecr.aws/aws-otel-test/aws-otel-java-spark:891a9f603414b0d02028ee21a4ce392015f352c8
Failing fast, like buildx, will make it easier / quicker to find such an issue.
The text was updated successfully, but these errors were encountered: