-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Multi Arch Image Build #8989
Multi Arch Image Build #8989
Conversation
/cc @rmohr @zhlhahaha |
There's a bunch of directions we can take this, e.g. how we can push these multi-arch manifests and how would the e2e automation look. Starting off with just building the manifest first to see if we can get alignment before going too far. |
related to #3558 |
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.
I added an alterantive suggestion. Let me know what you think.
707e0b8
to
da289ee
Compare
/retest-required |
Hi @rthallisey , thanks for your PR.
However, if we set If we modify |
@zhlhahaha the cross compile would still work because all I'm doing is calling a bazel build recipe. The args would look like:
The only difference is |
Verified on Arm64 server, it works fine:
Verified cross-build on x86_64 server, it works fine:
/lgtm |
/hold |
/retest |
/test pull-kubevirt-e2e-k8s-1.24-operator |
I applied the PR and create a kind cluster, then run the operator tests. All tests passed. |
Ya the failure is in the pretests |
Bazel doesn't support creating a multi-arch manifest, so we can work around that by using a container tool to add multiple architectures to a single manifest. Signed-off-by: Ryan Hallisey <rhallisey@nvidia.com>
2d73760
to
28f7ef4
Compare
Signed-off-by: Ryan Hallisey <rhallisey@nvidia.com>
28f7ef4
to
5372c9a
Compare
Signed-off-by: Ryan Hallisey <rhallisey@nvidia.com>
8b63297
to
f87354f
Compare
@rthallisey: The following test failed, say
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. |
/retest |
/lgtm |
/retest |
/approve Is the reason for the hold still an issue? |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: rmohr 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 |
/unhold |
Hi @rthallisey @rmohr , can you please assist with making container manifest also for the utility containers (those that are )? because in the current situation, as 1.0.0 released, now we have the utility containers with the arch tag in Quay, something that wasn't before. |
Bazel doesn't support creating a multi-arch manifest, so we can work around that by using a container runtime to build a multiple architecture manifest.
BUILD_ARCH
and bazel recipes will support the buildSample output from
BUILD_ARCH=aarch64,x86_64 make bazel-push-images
:Inspecting the result:
Failed builds look like:
Signed-off-by: Ryan Hallisey rhallisey@nvidia.com