Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down