Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ARM builds of docker image #316

Open
Qwertie- opened this issue Jul 15, 2022 · 6 comments
Open

ARM builds of docker image #316

Qwertie- opened this issue Jul 15, 2022 · 6 comments

Comments

@Qwertie-
Copy link

Looks like there are only x86 builds for the docker image. I have been getting some weird issues like segfaults on this container running on the M1 mac. In my experience the x86 emulation hasn't worked so well for docker.

Wondering if its possible to get ARM builds as well on docker hub?

@ido-namely
Copy link
Contributor

Hi @Qwertie- ,
Can you confirm you were not able to use the docker images with the --platform linux/amd64 flag?

@suever
Copy link

suever commented Jul 15, 2022

Hi @Qwertie- , Can you confirm you were not able to use the docker images with the --platform linux/amd64 flag?

We are also currently suffering from a related issue on an M1 mac:

WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
Language en_US.UTF-8 is not supported. Please specify one of: go ruby csharp java python objc gogo php node web cpp descriptor_set scala
make: *** [build] Error 1

@imthaghost
Copy link

imthaghost commented Jul 17, 2022

Hi @Qwertie- , Can you confirm you were not able to use the docker images with the --platform linux/amd64 flag?

Works like a charm, I've also listed an alternative solution below.

Alternative

@Qwertie- @suever

You can set the environment variable DOCKER_DEFAULT_PLATFORM to linux/amd64. I found this much easier than constantly having to use the --platform flag on my M1 mac.

export DOCKER_DEFAULT_PLATFORM=linux/amd64  

Reference: https://stackoverflow.com/questions/65612411/forcing-docker-to-use-linux-amd64-platform-by-default-on-macos

@suever
Copy link

suever commented Jul 19, 2022

Hi @Qwertie- , Can you confirm you were not able to use the docker images with the --platform linux/amd64 flag?

Works for me as well! Thanks

@Qwertie-
Copy link
Author

Hi @Qwertie- , Can you confirm you were not able to use the docker images with the --platform linux/amd64 flag?

This does sort of work but in my experience the emulation it uses just doesn't work all that well. I can't really report a specific issue since I'm using this container in a non standard way. Was just putting up an issue to register interest in an ARM build since those are much preferable to use on the ARM macbooks. Feel free to close this if that's not desired though.

@Petersoj
Copy link

Petersoj commented Jan 4, 2024

I modified the Dockerfile to get the build working on my ARM64 machine by updating the NODE_GRPC_TOOLS_VERSION variable and removing Scala, grpc-gateway, and grpc-web support from the build. This is just a temporary solution for me since I need ARM64 support and I'm not using those other features, but it would be nice if there was eventually an ARM64 version published by namely to Docker Hub.

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

No branches or pull requests

5 participants