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

Have multi-arch build in docker hub #36

Open
pdonorio opened this issue Jul 25, 2023 · 1 comment
Open

Have multi-arch build in docker hub #36

pdonorio opened this issue Jul 25, 2023 · 1 comment

Comments

@pdonorio
Copy link

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
Copy link
Author

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

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