Closed tenzen-y closed 1 year ago
This will break the build on Mac?
Yes, I faced the above error on the M1 Mac. However, the error will also happen on the x86 machine with the --platform=linux/arm64
flag in the following:
docker build --platform linux/arm64 -t mpioperator/intel-builder build/base -f build/base/intel-builder.Dockerfile
For the long term, it would be better to support the linux/arm64 in all images.
For example, we can not build build/base/intel-builder.Dockerfile for linux/arm64.
So this PR is breaking the build of the intel-builder image? Or I'm not understanding the PR description.
For example, we can not build build/base/intel-builder.Dockerfile for linux/arm64.
So this PR is breaking the build of the intel-builder image? Or I'm not understanding the PR description.
@alculquicondor I faced the above error from the make test_images
command since I'm using M1 Mac (arm64 machine) on my locally. So I create this PR so that we can develop using arm64 machines (e.g., M1 Mac).
Does that make sense?
ah ok, so by default we build on linux/amd64
, but you will now have the ability to change that to linux/arm64
for your own development.
I didn't notice the different characters at first glance :)
/lgtm /approve
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: alculquicondor
The full list of commands accepted by this bot can be found here.
The pull request process is described here
I specified the platforms for building images since we can not build all images for all platforms. For example, we can not build
build/base/intel-builder.Dockerfile
for linux/arm64.