neo4j-labs / neodash

NeoDash - a Dashboard Builder for Neo4j
https://neo4j.com/labs/neodash/
Apache License 2.0
427 stars 145 forks source link

Please add linux/arm64 to the platforms for the Docker build to support Apple Silicon Macs #754

Open glow-mdsol opened 10 months ago

glow-mdsol commented 10 months ago

Feature request template

I'm using docker on an M1 Mac for the OpenStudyBuilder project; the build fails or is downgraded as the dependencies in the Docker file use the @latest version designator and the arm64 not deployed by default to dockerhub. I can pin the dependency to 2.3.5 but that involves changing the source.

Ideally, if it would be possible to upgrade the version of the Github action setup-buildx-action to v2 or v3 and then add the linux/arm64 platform as well as the default, that would be great (per https://docs.docker.com/build/ci/github-actions/multi-platform/)

Thanks!

KiZach commented 4 months ago

This is also an issue for the latest Windows Snapdragon X devices as they run on ARM64 like the Mx platform.

ascheman commented 4 months ago

Local (Docker) build works like a charm on Apple Silicon: docker build -t neo4jlabs/neodash:latest .. However, I'd appreciate to find the image already on the Hub ...

nielsdejong commented 3 days ago

Hi @glow-mdsol, Maybe as a workaround for now, this can probably be resolved by adding a --platform argument to the docker run command. I'm on a M1 Mac as well, and this seems to work for me:

docker run -p 5005:5005 --platform linux/amd64 neo4jlabs/neodash:2.4.8

Agree that it would be nicer to have to have it DockerHub by default though!