cli icon indicating copy to clipboard operation
cli copied to clipboard

add aarch64 support

Open bmedicke opened this issue 4 years ago • 2 comments

Feature request

Is your feature request related to a problem? Please describe.

I'd like to run supabase on a Raspberry Pi 4 with a 64bit OS. Currently some of the used images don't seem to support that architecture (see log at the bottom) resulting in exec user process caused: exec format error for:

  • supabase-mail
  • supabase-db
  • supabase-rest
  • supabase-auth

Describe the solution you'd like

Add support for aarch64.

Additional context

docker-compose up output on a RPi4 a 64bit Rasbian: https://gist.github.com/bmedicke/4ee23a9914717c3fd92f7800cd457cff

bmedicke avatar Jul 07 '21 09:07 bmedicke

I'm also facing this issue, on a Raspberrypi 4 running an Ubuntu Server x64.

I've dug a bit further and from what I see, each of Supabase services actually have a arm64 build too, available as a tar ball in the releases of each repo. For example storage-api releases list aa aarch64 build in each release, while on docker hub only the arm64 is available.

I've tried manually downloading those images and import them into docker, with the hope that docker-compose would then picked the loaded images, but it seems I was a bit naive and might be missing something in my understanding 😅

Any guidance to go through with using those build to docker-compose up the full stack with only aarch64 images would be awesome ! (And of course ideally, submitting those already build aarch64 images to docker-hub, would probably ease the process too)

julienR2 avatar Aug 25 '21 10:08 julienR2

The Node.js CLI is being EOL'd in favor of the Go rewrite, so I don't think this will land for the old CLI. But we still need this for the self-hosted Compose setup, so I'll create an issue there. Shouldn't be difficult as we already use aarch64 for the hosted platform, I'll see if I can get around to this the next few weeks.

Edit: tracking this here: https://github.com/supabase/supabase/issues/2954

soedirgo avatar Aug 25 '21 10:08 soedirgo

Closing this in favor of the linked issue. The supabase/postgres image is the only one left missing a linux/arm64 build - the GitHub-hosted runner isn't enough to build these. Once we start having the linux/arm64 build (with self-hosted runners) it should be available with no change on the CLI side.

soedirgo avatar Sep 29 '22 07:09 soedirgo

Resolved as per https://github.com/supabase/cli/issues/429#issuecomment-1263228324!

soedirgo avatar Sep 30 '22 08:09 soedirgo