Skip to content
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 images - adding support for arm64/v8 #4

Open
syamaner opened this issue Dec 13, 2022 · 0 comments
Open

Multi-arch images - adding support for arm64/v8 #4

syamaner opened this issue Dec 13, 2022 · 0 comments

Comments

@syamaner
Copy link

Hi,

Given the current base image (ubuntu:trusty) is already multi-arch and supports arm64/v8, would it be possible to build docker-stress with arm64 support as well? Stress tool is also available as a package for the target architecture so changing the build process results in an image with both amd64 and arm64 support.

As more people are using M1 MacBook Pros, would be nice to have the support in this repository.

Based on our tests, I can confirm that if we build the image as following, the resulting image works on MacBook Pro M1 as well as Raspberry PI 4 besides intel / AMD platforms as it currently does:

docker buildx build --push --platform linux/amd64,linux/arm64/v8 --tag syamaner/stress:multiarch ./build

Once built and published, we can verify as below:

docker buildx imagetools inspect syamaner/stress:multiarch
image

p.s. I only published it to see if it would work but I was not intending to keep syamaner/stress:multiarch as it would be better in this repository. Also if there is any way I can contribute, I would be happy to.

Further information is available here: https://docs.docker.com/build/building/multi-platform/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant