Allow setting architecture of containers
Support creating containers of multi-platform images for an architecture other than that of the host running Complement.
Signed-off-by: Andrew Ferrazzutti [email protected]
Pull Request Checklist
- [x] Pull request includes a sign off
These changes allowed me to run Complement tests locally on an (emulated) arm64 Synapse image, so I figured it'd be helpful to submit a PR for them.
What's stopping you from building arch-specific images and then referencing them as say
homeserver-arm64:latest?
Nothing in particular; this PR was meant to work with Synapse's scripts-dev/complement.sh after being tweaked to build multi-platform images by putting --platform= on the build commands. But with that said, multi-platform images aren't a standard feature of all builders, which makes it even less worth expanding Complement's API surface for. So, I'm content to not carry this PR any further.
It's been a while & this isn't important. Closing.