postmanlabs / newman

Newman is a command-line collection runner for Postman
https://www.postman.com
Apache License 2.0
6.82k stars 1.15k forks source link

M1 build of the docker image for newman #3154

Open LewisCowlesMotive opened 10 months ago

LewisCowlesMotive commented 10 months ago
  1. Newman Version (can be found via newman -v): 5.3.1
  2. OS details (type, version, and architecture): osx aarch64 (M1 laptop)
  3. Are you using Newman as a library, or via the CLI? CLI (in docker)
  4. Did you encounter this recently, or has this bug always been there: N/A
  5. Expected behaviour: Runs a native arm64 build of newman
  6. Command / script used to run Newman: newman [args]
  7. Sample collection, and auxiliary files (minus the sensitive details): N/A
  8. Screenshots (if applicable): N/A

WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested

[Hot]Fix:

git clone https://github.com/postmanlabs/newman.git \
cd newman \
docker build -t postman/newman:alpine --build-arg NEWMAN_VERSION="5.3.1" --build-arg NODE_VERSION="16.16.0" docker/images/alpine

Desired fix:

Adjust CI to build for ARM64 / AARCH64 (they are the same thing, and Mac runs linux docker images instead of being a weirdo like Windows)