complement icon indicating copy to clipboard operation
complement copied to clipboard

Allow setting architecture of containers

Open AndrewFerr opened this issue 9 months ago • 2 comments

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

AndrewFerr avatar Apr 01 '25 19:04 AndrewFerr

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.

AndrewFerr avatar Apr 01 '25 19:04 AndrewFerr

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.

AndrewFerr avatar Apr 04 '25 12:04 AndrewFerr

It's been a while & this isn't important. Closing.

AndrewFerr avatar Apr 29 '25 15:04 AndrewFerr