Skip to content

Commit 30aee1b

Browse files
authored
Force linux/amd64 platform usage for mock service (#8)
So apple silicon users can use it. We might want to publish a `linux/arm64` at some point, but this is fine to start with.
1 parent 654db09 commit 30aee1b

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,10 @@ pip install -e ".[dev]"
140140
pytest tests/
141141
```
142142

143+
The mock service container is forced to run as `linux/amd64` to keep parity with CI
144+
and to work reliably on Apple Silicon machines (Docker Desktop will handle
145+
emulation automatically).
146+
143147
**Using an existing service (CI/production):**
144148

145149
```bash

tests/conftest.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,11 @@ def __init__(
4242
self,
4343
image: str = "ghcr.io/altertable-ai/altertable-mock:latest",
4444
port: int = 15002,
45+
platform: str = "linux/amd64",
4546
):
46-
super().__init__(image)
47+
# Force the mock service to run on linux/amd64 so Apple Silicon hosts use the
48+
# correct architecture (via emulation when needed).
49+
super().__init__(image, platform=platform)
4750
self.port = port
4851
self.with_exposed_ports(port)
4952
self.with_env("ALTERTABLE_MOCK_FLIGHT_PORT", str(port))

0 commit comments

Comments
 (0)