-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
add multi-arch support to images/alpine #18189
Conversation
/assign @BenTheElder @fejta |
Related issue: #16588 |
/cc @zhlhahaha |
substitutions: | ||
_GIT_TAG: '12345' | ||
images: | ||
- 'gcr.io/$PROJECT_ID/alpine:$_GIT_TAG' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please preserve the expected images to publish.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi,
In step 3, those images with fat-manifest will be pushed into registry with 'buildx --push' parameter .
I have tested the build methods(make & prowjob) with my private gcloud account, the multi-arch images can be pushed into my private gcloud registry automatically.
On the other hand, we can't load the multi-arch images into the local docker daemon with 'buildx --load' parameter .
Please see the issue as reference:
docker/buildx#59
If we keep this images field, the builder will report an error
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, this is my first experience with buildx and multiarch images (thanks so much for working on this).
And if the push fails then the build fails? How about then adding a comment at the bottom about what images we expect this to push and why we don't use cloud build's auto verification?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And if the push fails then the build fails?
Yes.
How about then adding a comment at the bottom about what images we expect this to push and why we don't use cloud build's auto verification?
The comment has been added.
90734fb
to
689063c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/hold
for some optional comments, please remove when/if you address them. Thanks for this update!
689063c
to
eae2b21
Compare
Hi @dims @BenTheElder |
/assign @dims |
images/alpine/cloudbuild.yaml
Outdated
- build | ||
- --platform=linux/amd64,linux/arm64,linux/ppc64le |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason for this particular list of platforms?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi,
At present, kubevirt/istio is ready to do the prow ci for these 3 platforms: x86, powerpc, arm64.
And images/alpine is the basic image for other images, such as: git/sidecar/initupload...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason for this particular list of platforms?
Hi, Ben,
We are trying to enable CI test for kubevirt/kubeflow/istio project on ARM. And facing a problem that in order to trigger a prow job on ARM cluster, prow utility images need to run on ARM cluster. So we are wandering if we can make at least these utility images (sidecar/initupload/entrypoint/clonerefs) support multi-arch. We have blocked here for really a long time.
Thanks a lot!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@BenTheElder
Any comments?
I'm inclined to merge this unless there are any outstanding issues? |
We are looking to add s390x support to the multiarch image. While this PR is yet to be merged, |
OK. |
Signed-off-by: Bin Lu <[email protected]>
eae2b21
to
d089921
Compare
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: fejta, lubinsz, zhlhahaha The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Thanks for your pull request. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please follow instructions at https://git.k8s.io/community/CLA.md#the-contributor-license-agreement to sign the CLA. It may take a couple minutes for the CLA signature to be fully registered; after that, please reply here with a new comment and we'll verify. Thanks.
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Rotten issues close after 30d of inactivity. Send feedback to sig-contributor-experience at kubernetes/community. |
@fejta-bot: Closed this PR. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
2 test methods have been verified:
1, make -f images/alpine/Makefile
2, test command in prow job:
bazel-bin/images/builder/linux_amd64_stripped/builder --project==k8s-prow --allow-dirty=true images/alpine/
Currently, we are trying to enable arm64 prow ci for istio/kubevirt.
Both of the projects need the multi-arch images.
Signed-off-by: Bin Lu [email protected]