postal icon indicating copy to clipboard operation
postal copied to clipboard

Support ARM64 based CPU

Open amplitudesxd opened this issue 1 year ago • 8 comments

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.

amplitudesxd avatar Feb 07 '24 16:02 amplitudesxd

@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

phillmorgan28 avatar Mar 06 '24 12:03 phillmorgan28

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

adamcooke avatar Mar 06 '24 13:03 adamcooke

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/

willpower232 avatar Mar 06 '24 13:03 willpower232

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

image

adamcooke avatar Mar 06 '24 13:03 adamcooke

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.

adamcooke avatar Mar 16 '24 11:03 adamcooke

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

lmmendes avatar Jun 22 '24 14:06 lmmendes

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.

morganarnel avatar Aug 15 '24 13:08 morganarnel