Pin submission images to linux/amd64 and check the architecture at validation
#7
by kkundu10 - opened
The problem
Ensures that the docker is built on linux/amd64.
The fix
Two changes, in the two places that matter.
build_image.sh -- pins the platform to linux/amd64validate_image.sh -- asserts the architecture is linux/amd64`. The check reads image metadata rather than executing anything.
Participants building docker images on Apple Silicon
Cross-building emulates, so a build goes from a few minutes to roughly 20-45. Enabling "Use Rosetta for x86_64/amd64 emulation" in Docker Desktop or build on any x86 Linux host to reduce this additional cost. If no emulation is available the build now fails rather than producing an arm64 image. That is the intended outcome.
No code changes are needed for this cross-build
htranx changed pull request status to merged