Skip to content

Fix test suite refusing to run on ARM64 hosts for newer MREG images - #497

Open
pederhan wants to merge 1 commit into
masterfrom
fix-container-image-arm64
Open

pederhan wants to merge 1 commit into
masterfrom
fix-container-image-arm64

Conversation

@pederhan

Copy link
Copy Markdown
Member

MREG builds container images on ubuntu-latest, whose BuiltKit version now adds attestations to the built image, which causes it to refuse to run on ARM64 hosts without specifying platform: linux/amd64 in docker-compose.yml.

The platform option is only set if no ARM64 mreg image exists and the runner host is ARM64. If we start building ARM64 images, the test suite will seamlessly transition to using those in the test suite on ARM64 hosts, while maintaining compatibility with older AMD64 MREG images. Until we build ARM64 images, this is a stopgap that makes the test suite work on ARM64 hosts, while leaving the test suite on AMD64 hosts unchanged.

This PR does assume ARM64 is the only non-AMD64 platform we may run the test suite on, but that's a pretty fair assumption, and we'll quickly notice if that assumption doesn't hold.

Relevant docs:
https://docs.docker.com/reference/compose-file/services/#platform
https://docs.docker.com/reference/compose-file/build/#platforms
https://docs.docker.com/build/metadata/attestations/

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.

1 participant