Skip to content

fix: support ARM64 hosts in attacker Dockerfile mongosh install - #14

Open
kiandadban wants to merge 2 commits into
Akshay-Rohatgi:mainfrom
kiandadban:fix/mongosh-arm64-support
Open

fix: support ARM64 hosts in attacker Dockerfile mongosh install #14
kiandadban wants to merge 2 commits into
Akshay-Rohatgi:mainfrom
kiandadban:fix/mongosh-arm64-support

Conversation

@kiandadban

@kiandadban kiandadban commented Aug 19, 2026

Copy link
Copy Markdown

by downloading the arm64 mongosh binary on ARM64 build hosts instead of always fetching x64.

Fixes #6

Fix

Uses Docker's built-in TARGETARCH build arg to select the correct mongosh binary (arm64 or x64) at build time. On amd64/Linux hosts, TARGETARCH resolves to amd64, so ARCH falls through to x64. No change for existing working builds.

Testing

Verified locally on Mac — docker build -t goe-attacker-test docker/attacker/ now completes successfully. Verified pytest -m "not docker and not llm" produces identical results

…wnloading the arm64 mongosh binary on ARM64 build hosts instead of always fetching x64
GoE's Python docker SDK calls images.build() without BuildKit, so TARGETARCH was always
unset and the ARM64 fix never activated. uname -m works regardless of build backend.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docker/attacker/Dockerfile: mongosh download fails with exit code 133

1 participant