From 9bd44e2406fe8cb1fee8db2c8a1187e51211669c Mon Sep 17 00:00:00 2001 From: Sylvain Utard Date: Fri, 5 Dec 2025 21:02:08 +0100 Subject: [PATCH] Force linux/amd64 platform usage for mock service So apple silicon users can use it --- README.md | 4 ++++ tests/conftest.py | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index dd6fd0c..76547b3 100644 --- a/README.md +++ b/README.md @@ -140,6 +140,10 @@ pip install -e ".[dev]" pytest tests/ ``` +The mock service container is forced to run as `linux/amd64` to keep parity with CI +and to work reliably on Apple Silicon machines (Docker Desktop will handle +emulation automatically). + **Using an existing service (CI/production):** ```bash diff --git a/tests/conftest.py b/tests/conftest.py index 90aaa57..8ee64f6 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -42,8 +42,11 @@ def __init__( self, image: str = "ghcr.io/altertable-ai/altertable-mock:latest", port: int = 15002, + platform: str = "linux/amd64", ): - super().__init__(image) + # Force the mock service to run on linux/amd64 so Apple Silicon hosts use the + # correct architecture (via emulation when needed). + super().__init__(image, platform=platform) self.port = port self.with_exposed_ports(port) self.with_env("ALTERTABLE_MOCK_FLIGHT_PORT", str(port))