-
Notifications
You must be signed in to change notification settings - Fork 39
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
Native builder required for targeting different ARCH #42
Comments
We've investigated this issue and found that, at the time, there doesn't seem to be a way to convince docker to change the architecture of a resulting image, other than through |
FWIW, I think |
For what it's worth, we also made updates to the admin and control container Dockerfiles to be compatible with |
I actually looked at this abit when I went down the rabbit hole of arm builds for bottlerocket and testsys (see bottlerocket-os/bottlerocket-test-system#90 & bottlerocket-os/bottlerocket-test-system#509) But I quickly discovered a roadblock; our bottlerocket SDK's manifest is not multi-arch. So attempting to build a multiarch manifest from a single docker target (instead, it uses a So, there may be changes to happen in dependent images (aka, the SDK) to make this possible. |
Image I'm using:
n/a
Issue and Feature Request:
The build process is unable to produce an
arm64v8
architecture specific image. The build'sDockerfile
uses ascratch
based container image and, on my machine at least, the requested architecture is not set for this image (withARCH=arm64
).docker build
uses the native architecture forscratch
and does not support setting platform in builder. Using Docker'sbuildx
works when setting platform at the top of the build:However, this would require users to install the
buildx
plugin and isn't a reasonable ask.This issue should define a solution towards a correctly building a non-native architecture targeted image OR take steps to set the image's correct architecture at/following build.
The text was updated successfully, but these errors were encountered: