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

Add Support for ARM64 Architecture in Docker Image #332

Open
stepanov1997 opened this issue Jul 2, 2024 · 2 comments
Open

Add Support for ARM64 Architecture in Docker Image #332

stepanov1997 opened this issue Jul 2, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@stepanov1997
Copy link

stepanov1997 commented Jul 2, 2024

I would like to propose adding support for the ARM64 architecture to the Docker image of the BigQuery emulator. With the increasing popularity and usage of ARM64-based systems, especially with the advent of ARM-based processors in both servers and personal computing devices, it is crucial for the Docker image to be compatible with these architectures.

Adding ARM64 support to the Docker image will:

•	Enhance the emulator’s usability on a broader range of hardware.
•	Enable developers using ARM64-based systems to leverage the BigQuery emulator Docker image without the need for workarounds or additional virtualization.
•	Promote greater flexibility and inclusivity for developers working on various hardware configurations.

I believe this enhancement will greatly benefit the community and align with the ongoing industry trend towards ARM64 adoption. Thank you for considering this request.

@stepanov1997 stepanov1997 added the enhancement New feature or request label Jul 2, 2024
@stepanov1997 stepanov1997 changed the title Add Support for ARM64 Architecture Add Support for ARM64 Architecture in Docker Image Jul 2, 2024
@Niraj-Fonseka
Copy link

Unsure if this will help, but you should be able to run the emulator on a ARM64 based ( I tested on a M2 mac ) by passing in the platform flag to the docker run command.
docker run --platform linux/x86_64 -it ghcr.io/goccy/bigquery-emulator:latest --project=test-project

It's mentioned at the end of How to start the standalone server section just in case if you missed it.

@daaain
Copy link

daaain commented Feb 10, 2025

I managed to build an ARM64 image locally, it needed 3 changes:

  1. build go-zetasql as ARM64 (no changes needed)
  2. update debian:bullseye to debian:bookworm in the emulator stage in the Dockerfile (here)
  3. comment out this bit in the Makefile (here):
ifneq ($(UNAME_OS),Darwin)
	STATIC_LINK_FLAG := -linkmode external -extldflags "-static"
endif

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants