Adapt build script to aarch64 platform#743
Conversation
|
@maxking is it possible that, as @nathanfredericks already approved this, you have a merge button available? if yes, please click it :-) |
|
I've built this using build.sh on a Hetzner ARM64 cloud container. It will always restart: The logs show the problem:
So I've changed the PLATFORM_TO_LOAD var to |
| PLATFORM="${PLATFORM:-linux/arm64/v8,linux/amd64}" | ||
| # Platform to load into docker after build | ||
| # Can only load one platform, should match host | ||
| PLATFORM_TO_LOAD="linux/amd64" |
There was a problem hiding this comment.
Should we figure out the current platform instead of hard coding it? Or, at least provide a way to override it using env var so someone can run builds on non-x86 machines too?
Also, let's rename the vars as BUILD_PLATFORM and CURRENT_PLATFORM instead? I don't think PLATFORM_TO_LAOD not matching the current platform would really work.
|
Closing in favor of #749 |
I need to use mailman on a Hetzner cloud instance. The images are not multi-arch, so I adapted the builds script to run multi-arch docker builds.
I ran into problems compiling the latest uwsgi (2.0.28) - (or one of its plugins, since postorius seemed to compile just fine on 2.0.28). This was fixed by pinning uwsgi to 2.0.25 for the mailman-web docker image.