Skip to content
This repository has been archived by the owner on May 12, 2023. It is now read-only.

Prepared for multi-arch Docker image build, with updated docker-gen #9

Closed

Conversation

ocean
Copy link

@ocean ocean commented Mar 15, 2021

In order to get the pygmy stack running on my Apple M1 arm64 machine, I had to rebuild this image as linux/arm64, which also involved creating Go cross-compiled versions of the docker-gen tool. I went to put in a PR to the original docker-gen repo, but several people have already put in requests for cross-compiled versions of the binaries, and the repo hasn't been touched since 2018.

See my updated version of docker-gen here.

This updated Dockerfile can be built into a multi-arch image version for Docker Hub using these steps:

  1. Create a Docker BuildKit build image by running:
    $ docker buildx create --use --name=multi
    Docker will download and run the moby/buildkit image.
  2. Build and push the images for 2 architectures by running:
    $ docker buildx build --platform linux/amd64,linux/arm64 --push -t amazeeio/haproxy -f ./Dockerfile .

@ocean
Copy link
Author

ocean commented Mar 15, 2021

Updated this PR with HAProxy update to version 2.2 as suggested in PR #6 and #8.

@ocean
Copy link
Author

ocean commented Mar 15, 2021

Ping @tobybellwood :-)

@tobybellwood
Copy link
Member

Thanks @ocean - promise we're looking into all this atm!

@ocean
Copy link
Author

ocean commented Mar 16, 2021

Thanks @tobybellwood 😄

I’m not trying to nag at all, hence the PR, just wanting to contribute. Let me know where I can help out!

Happy to test etc, and I also have a list of the places (I think) where things will need rebuilding/cross-compiling.

@tobybellwood
Copy link
Member

Ooh Ooh! Looks like docker-gen now can has arm64 - https://github.com/jwilder/docker-gen/releases/tag/0.7.5

@ocean ocean force-pushed the multi-arch-build-with-updated-docker-gen branch from c1fd55d to 4d340dc Compare April 28, 2021 07:11
@BrianGilbert
Copy link

BrianGilbert commented Aug 3, 2021

Thanks @ocean and anyone with scripts that are looking for pygmy I suggest running the following too:

sudo ln -s /usr/local/bin/pygmy-apple /usr/local/bin/pygmy

@duttonw
Copy link

duttonw commented Nov 9, 2021

docker-gen is now up to 0.8.0

@duttonw
Copy link

duttonw commented Nov 9, 2021

Hi @twardnw,

When you are able to, can this be merged this to reduce Apple M1 user pain points with trying to use pygmy out of the box.

Regards,

@duttonw

@tobybellwood
Copy link
Member

pygmystack/haproxy is multiarch - and handling v2 upgrade at pygmystack/haproxy#12

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

Successfully merging this pull request may close these issues.

None yet

4 participants