pact-foundation / pact-ruby-cli

Amalgamated Pact Ruby CLI
https://pact.io
MIT License
12 stars 15 forks source link

Add support for linux/arm64 #103

Closed kyam-mayden closed 1 year ago

kyam-mayden commented 1 year ago

Currently, other Pact Foundation images (such as the stub server) support being run on linux/arm64 hardware, but pact-ruby-cli does not.

This limits users on Apple M1 chips from being able to use the software.

Please can support be added for linux/arm64

kyam-mayden commented 1 year ago

Just realised this is a duplicate of https://github.com/pact-foundation/pact-ruby-cli/issues/51, closing

YOU54F commented 1 year ago

TL;DR

You can now get multi-platform images by appending -multi to your pact-cli Docker tag

ARM64

❯docker run --rm --platform=linux/arm64 -it pactfoundation/pact-cli:latest-multi /bin/sh -c 'uname -sm'
Unable to find image 'pactfoundation/pact-cli:latest-multi' locally
latest-multi: Pulling from pactfoundation/pact-cli
Digest: sha256:d0f8f7d47796cc33c5c47ef328bb1ba42685d4c7005dece026ea8363f9d3ce65
Status: Downloaded newer image for pactfoundation/pact-cli:latest-multi
Linux aarch64

AMD64

~ on ☁️  (eu-west-2) took 7s
❯ docker run --rm --platform=linux/amd64 -it pactfoundation/pact-cli:latest-multi /bin/sh -c 'uname -sm'
Unable to find image 'pactfoundation/pact-cli:latest-multi' locally
latest-multi: Pulling from pactfoundation/pact-cli
Digest: sha256:d0f8f7d47796cc33c5c47ef328bb1ba42685d4c7005dece026ea8363f9d3ce65
Status: Downloaded newer image for pactfoundation/pact-cli:latest-multi
Linux x86_64

ARM

~ on ☁️  (eu-west-2) took 6s
❯ docker run --rm --platform=linux/arm -it pactfoundation/pact-cli:latest-multi /bin/sh -c 'uname -sm'
Unable to find image 'pactfoundation/pact-cli:latest-multi' locally
latest-multi: Pulling from pactfoundation/pact-cli
Digest: sha256:d0f8f7d47796cc33c5c47ef328bb1ba42685d4c7005dece026ea8363f9d3ce65
Status: Downloaded newer image for pactfoundation/pact-cli:latest-multi
Linux armv7l