Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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/amd64in docker-compose.yml.The
platformoption 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/