-
Notifications
You must be signed in to change notification settings - Fork 120
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
Push multi-arch images #314
Conversation
Signed-off-by: ddelange <[email protected]>
Signed-off-by: ddelange <[email protected]>
I think we need to widen the scope of this change to ...
|
Hi @ddelange, are you still planing to work on the remaining multi-arch PRs? We had another request to support multiple (non-amd64) platforms since. What do you think about me pushing some updates to your PRs to address some of the outstanding work -- if you don't mind me becoming a co-author on your PRs. |
Hi @ckadner feel free to take them over! I'm pretty side-tracked at work at the moment, but I'll be around, feel free to ping me! |
Signed-off-by: Christian Kadner <[email protected]>
Signed-off-by: Christian Kadner <[email protected]>
Signed-off-by: Christian Kadner <[email protected]>
Signed-off-by: Christian Kadner <[email protected]>
so it's available for controller image build later Signed-off-by: Christian Kadner <[email protected]>
Signed-off-by: Christian Kadner <[email protected]>
Signed-off-by: Christian Kadner <[email protected]>
So the controller image build cannot use the developer image built in the previous step Signed-off-by: Christian Kadner <[email protected]>
Signed-off-by: Christian Kadner <[email protected]>
Signed-off-by: Christian Kadner <[email protected]>
Signed-off-by: Christian Kadner <[email protected]>
Signed-off-by: Christian Kadner <[email protected]>
Signed-off-by: Christian Kadner <[email protected]>
Signed-off-by: Christian Kadner <[email protected]>
To prevent error 'failed to parse platform ""' for standard non-multi-platform docker builds. Signed-off-by: Christian Kadner <[email protected]>
Signed-off-by: Christian Kadner <[email protected]>
Signed-off-by: Christian Kadner <[email protected]>
Woohoo, the multi-platform build times are down to 13.5 minutes, or 8.5 minutes if the developer image exists. |
The --mount option requires BuildKit, refer to https://docs.docker.com/go/buildkit/ Signed-off-by: Christian Kadner <[email protected]>
Signed-off-by: Christian Kadner <[email protected]>
Signed-off-by: Christian Kadner <[email protected]>
Signed-off-by: Christian Kadner <[email protected]>
Thanks @tjohnson31415 for pointing out the error with setting "default" Updated, now we actually build target platform specific binaries (with comparable cross-compile build times):
|
Signed-off-by: Christian Kadner <[email protected]>
Signed-off-by: Christian Kadner <[email protected]>
Signed-off-by: Christian Kadner <[email protected]>
Signed-off-by: Christian Kadner <[email protected]>
Signed-off-by: Christian Kadner <[email protected]>
Signed-off-by: Christian Kadner <[email protected]>
Signed-off-by: Christian Kadner <[email protected]>
Signed-off-by: Christian Kadner <[email protected]>
Signed-off-by: Christian Kadner <[email protected]>
Signed-off-by: Christian Kadner <[email protected]>
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.
LGTM
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ddelange, tjohnson31415 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 |
Motivation
Multi-platform build for
modelmesh-controller
andmodelmesh-controller-develop
images; enable minikube deployments on Mac M1 laptops (#162, #231)Modifications
amd64
arch-specificnodeAffinity
for modelmesh controller (Quick start not working for Mac M1 laptops #162, 0/1 nodes are available: 1 node(s) didn't match Pod's node affinity/selector #231)linux/amd64
,linux/arm64
,linux/ppc64le
,linux/s390x
ubi8/go-toolset:1.18
for developer image instead ofubi8/ubi-minimal:8.7
pull_request
as well as onpush
to catch build breaks during PR reviewcheckout
actionmake run fmt
inside the developer containerbuild_devimage.sh
script to only pull developer image if not already presentdevelop.sh
script to use the.develop_image_name
Related PRs
modelmesh
(Push multi-arch images modelmesh#80)modelmesh-runtime-adapter
(Push multi-arch images modelmesh-runtime-adapter#38)rest-proxy
(Push multi-arch images rest-proxy#24)modelmesh-minio-examples
(Enable multi-platform build modelmesh-minio-examples#3)Related issues
Resolves #162
Resolves #231