postalserver / postal

📮 A fully featured open source mail delivery platform for incoming & outgoing e-mail
https://postalserver.io
MIT License
14.97k stars 1.07k forks source link

Support ARM64 based CPU #2793

Open amplitudesxd opened 9 months ago

amplitudesxd commented 9 months ago

Describe the bug

As there isn't a build for ARM64 based CPUs, Postal cannot run on them and errors with "exec user process caused: exec format error".

To Reproduce

  1. Use an ARM64-based server (Raspberry Pi, Hetzner Cloud ARM server, etc.)
  2. Attempt to create a container with the Postal docker image
  3. Observe error

Expected behaviour

I expect Postal to work on ARM, while ARM architecture wasn't used as much in servers previously, it's becoming increasingly popular with many dedicated/cloud server providers offering them.

Additional information/context

I've created a PR to add ARM builds in #2770.

phillmorgan28 commented 9 months ago

@adamcooke Support appears to be broken Error whilst pulling v3 images during postal initialize - no matching manifest for linux/arm64/v8 in the manifest list entries

adamcooke commented 9 months ago

This is intentional. Unfortunately it takes 20+ minutes to build for ARM. Until we can speed this up, ARM images are not built.

willpower232 commented 9 months ago

We have had this problem too (building ARM images on GitHub), hopefully the ARM runners are available soon https://github.blog/changelog/2023-10-30-accelerate-your-ci-cd-with-arm-based-hosted-runners-in-github-actions/

adamcooke commented 9 months ago

We have a ARM server right here. We just need to set it up to run some self hosted runners.

image

adamcooke commented 8 months ago

image

Some progress is being made here. Specifically we can build the image on ARM and AMD64 in just over 2 minutes which is better than over 20.

lmmendes commented 5 months ago

Hi all, are there any updates on adding ARM64 support to the project?

morganarnel commented 3 months ago

Hey @adamcooke, seemed to me like you had this sussed out already. Are there any updates on this please? I'll buy you a coffee.

WEBDIENSTE commented 2 months ago

+1

Niklas2290 commented 2 weeks ago