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

Cannot build multiplatform image with Jib #7628

Closed
gsquared94 opened this issue Jul 7, 2022 · 2 comments
Closed

Cannot build multiplatform image with Jib #7628

gsquared94 opened this issue Jul 7, 2022 · 2 comments
Labels
area/cross-platform kind/feature-request kind/todo implementation task/epic for the skaffold team priority/p1 High impact feature/bug.

Comments

@gsquared94
Copy link
Collaborator

gsquared94 commented Jul 7, 2022

In the examples/jib project, run:

skaffold build --platform=linux/amd64,linux/arm64 --default-repo=<your-repository>

Expected behavior

Since the configured base image doesn't support linux/arm64 the build fails and Skaffold reports the appropriate actionable error asking the user to use an appropriate base image.

Actual behavior

The specified base image gcr.io/google-appengine/openjdk:8 is not a manifestlist. The builds shows a warning and only builds a single platform image.

[INFO] Using base image with digest: sha256:c12812974ad966167f5ec267f0ef663ed1b5d315baad4c658a0da875f1b46f4e
[WARNING] platforms configured, but 'gcr.io/google-appengine/openjdk:8' is not a manifest list
[INFO] 
[INFO] Container entrypoint set to [java, -Djava.security.egd=file:/dev/./urandom, -cp, /app/resources:/app/classes:/app/libs/*, hello.Application]
[INFO] 
[INFO] Built and pushed image as gsquared94/skaffold-jib:v1.39.1-1-g0531dfa43-dirty

Information

Skaffold should check the provided base image for matching target platforms and error early if not found.

@gsquared94 gsquared94 added area/cross-platform priority/p1 High impact feature/bug. labels Jul 7, 2022
@gsquared94
Copy link
Collaborator Author

Opened GoogleContainerTools/jib#3707

@tejal29 tejal29 added kind/feature-request kind/todo implementation task/epic for the skaffold team labels Jul 11, 2022
@gsquared94
Copy link
Collaborator Author

this is now fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/cross-platform kind/feature-request kind/todo implementation task/epic for the skaffold team priority/p1 High impact feature/bug.
Projects
None yet
Development

No branches or pull requests

2 participants