Repository navigation
feat: support make to build multi-arch - #1647
Conversation
- to really use this feature, the underlying host need to support it, one way is qeum Signed-off-by: Wen Zhou <wenzhou@redhat.com>
| - To build multi-arch image, by config env variablel PLATFORM | ||
| ```commandline | ||
| export PLATFORM=linux/amd64,linux/arm64,linux/ppc64le,linux/s390x | ||
| make image |
There was a problem hiding this comment.
Is it really a requirement to get it from environment? I would rather keep it make-only (make PLATFORM=...) than depend of non-specific, but generic name in the environment.
There was a problem hiding this comment.
i set env in a local.mk file, so i do not need to pass PLATFORM everytime i type make.
and if i do not need multiple arch, i just comment out that variable in local.mk
i think we were using local.mk as mentioned in the https://github.com/opendatahub-io/opendatahub-operator/blob/main/docs/troubleshooting.md#using-a-localmk-file-to-override-makefile-variables-for-your-development-environment
There was a problem hiding this comment.
i set env in a local.mk file, so i do not need to pass PLATFORM everytime i type make. and if i do not need multiple arch, i just comment out that variable in local.mk i think we were using local.mk as mentioned in the https://github.com/opendatahub-io/opendatahub-operator/blob/main/docs/troubleshooting.md#using-a-localmk-file-to-override-makefile-variables-for-your-development-environment
But local.mk has make variables, not environment in sense of export command. See b41b6aa
There was a problem hiding this comment.
Using PLATFORM ?= makes it possible to set the variable from the environment (in unix sense) so can be useful for people who use something like https://direnv.net. But in general it's a common place, so non-namespaced variables there ring the bell.
I'm just wondering what is the intention. Environment works for me as well.
There was a problem hiding this comment.
should i change this to :
- To build multi-arch image, set variable PLATFORM in your local.mk file, e.g:
PLATFORM=linux/amd64,linux/arm64,linux/ppc64le,linux/s390x
then run
make image
There was a problem hiding this comment.
I already approved it so let's leave as it is. It's correct with the patch.
Signed-off-by: Wen Zhou <wenzhou@redhat.com>
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ykaliuta The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
New changes are detected. LGTM label has been removed. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1647 +/- ##
=======================================
Coverage 20.35% 20.35%
=======================================
Files 163 163
Lines 11156 11156
=======================================
Hits 2271 2271
Misses 8645 8645
Partials 240 240 ☔ View full report in Codecov by Sentry. |
|
/cherrypick rhoai |
|
@zdtsw: new pull request created: #1867 DetailsIn 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-sigs/prow repository. |
Description
How Has This Been Tested?
Screenshot or short clip
Merge criteria