Closed j03k64 closed 11 months ago
Do you know how can I do that without access to a Mac?
Hey @sevein I've used docker buildx
in the past with success: https://www.docker.com/blog/multi-arch-build-and-images-the-simple-way/
I forked your repo (which I don't want to maintain long term, but used it as a proof of concept for you) on an x86 machine I did (after installing buildx plugin):
docker login
cd 1.1.20/
docker buildx build -t shootproof/docker-gearmand:latest --platform linux/arm64,linux/amd64 --push .
You can see the multiple tags here: https://hub.docker.com/r/shootproof/docker-gearmand/tags
You'll need to obviously update the -t
argument to artefactual/gearmand
.
I think it worked! I didn't know that buildkit had qemu emulation support, that's amazing. I've published a new image with the latest version of alpine and gearman 1.1.21.
https://hub.docker.com/r/artefactual/gearmand/tags?page=1&name=1.1.21
Thank you so much! It looks like it's working as expected!
I've deleted my fork.
Don't forget to update the latest
tag and the README.md
file :-)
Thanks, just pushed latest
.
I assume you have access to push multiple architecture builds for the same image. I was able to confirm that building on ARM64 works fine on my M1 Mac. I was wondering if was possible to push an ARM64 architecture tag so that this can run without emulation on ARM-based machines.
Using the
Dockerfile
from the1.1.20
release:Logs