mockify icon indicating copy to clipboard operation
mockify copied to clipboard

Have multi-arch build in docker hub

Open pdonorio opened this issue 1 year ago • 1 comments

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!

pdonorio avatar Jul 25 '23 12:07 pdonorio

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

pdonorio avatar Jul 31 '23 17:07 pdonorio