stargate / docker-images

https://stargate.io
Apache License 2.0
16 stars 14 forks source link

Stargate multi-arch support for M1 development (arm64v8) #47

Closed ghost closed 3 years ago

ghost commented 3 years ago

Issue Type

Bug

Description

Stargate images do not support arm64v8 architecture. This is required for running Stargate in a Docker container on M1 MacBook Pros. Without arm64v8 multi-arch support, local development is not currently possible.

System

Machine: Apple M1 MacBook Pro (Big Sur) Docker: Docker Desktop Preview 3.1.0 (https://docs.docker.com/docker-for-mac/apple-m1/) Image: stargateio/stargate-3_11:v1.0.14

Steps

  1. From the official stargate documentation.

Run:

docker run --name stargate \
  -p 8080:8080 \
  -p 8081:8081 \
  -p 8082:8082 \
  -p 127.0.0.1:9042:9042 \
  -d \
  -e CLUSTER_NAME=stargate \
  -e CLUSTER_VERSION=3.11 \
  -e DEVELOPER_MODE=true \
  stargateio/stargate-3_11:v1.0.14
  1. Process exits with error:
    WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested

Please add multi-arch support for M1 machines. Not every developer has access to remote infrastructure for testing.

Thanks!

dougwettlaufer commented 3 years ago

Hi @pgobin thanks for bringing this up. We're all split across Linux and older macs, would you be willing to help out with testing?

ghost commented 3 years ago

@dougwettlaufer Absolutely.

eddiejaoude commented 3 years ago

I have this issue also, any movement or ETA on this? I am happy to test too. Thank you 🤓

dougwettlaufer commented 3 years ago

@pgobin and @eddiejaoude I just pushed v1.0.27-m1_test2 which should now support Apple M1. When you get a chance would you mind trying it out and letting me know how it works on your machines?

eddiejaoude commented 3 years ago

Thanks @dougwettlaufer , as a quick glance it seems to work fine on the M1 👍

ghost commented 3 years ago

@dougwettlaufer As it happens, I was forced to swap my M1 for an Intel-based machine. Unfortunately, that means I won't be able to help with testing. However, it's great to see this addressed.

eddiejaoude commented 3 years ago

I have been using this image for a few days and all seems fine 💥 Thank you!

dougwettlaufer commented 3 years ago

Awesome, thanks for confirming @eddiejaoude