mockify
mockify copied to clipboard
Have multi-arch build in docker hub
Hello, thanks for the small cool project!
Any chances we can have also the ARM version of the image in docker hub? It's necessary with all the people with M1/M2 chip based Macbooks 🙏🏽
As far as my experience goes it's much easier than in the past now with docker to build multi-arch with buildx
and push,
or use it through CI, e.g. https://www.docker.com/blog/multi-arch-build-and-images-the-simple-way/.
Let me know if I can help, in case. Thanks again!
Temporary solving this with building my own version.
Leaving here instructions for others
# change base version in Dockerfile
# in https://github.com/brianmoran/mockify/blob/master/Dockerfile#L1
# - FROM golang:1-alpine as builder
# + FROM golang:1.11.13-alpine as builder
docker buildx create --name multiplatform-builder
docker buildx use multiplatform-builder
docker login -u YOURUSER
docker buildx build . \
--tag YOURUSER/mockify --platform linux/amd64,linux/arm64 --push