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))