postgres icon indicating copy to clipboard operation
postgres copied to clipboard

Feature/support mac M architecture

Open jhf opened this issue 1 year ago • 2 comments

What kind of change does this PR introduce?

Add support for building on a mac with the M-series processors.

What is the current behavior?

The command

docker buildx build \
  $(yq 'to_entries | map(select(.value|type == "!!str")) |  map(" --build-arg " + .key + "=" + .value) | join("")' 'ansible/vars.yml') \
  --target production \
  --tag 'custom_supabase_postgres' \
  --platform 'linux/arm64/v8,linux/amd64' \
  --load \
  .

Fails with unsupported architecture because aarch64 is not supported.

Please link any relevant issues here.

What is the new behavior?

It builds on mac with the M1 processor.

Additional context

I've also documented how to quickly build multi-arch images locally.

jhf avatar Oct 29 '24 12:10 jhf

@jhf I will be working on these Dockerfiles again within the next 2 weeks, and will come back and look at your PR and try to integrate it. Thank you!

samrose avatar Nov 05 '24 00:11 samrose

@samrose @jhf where does this PR stand? still valid? still pending review from backend?

hunleyd avatar Aug 27 '25 14:08 hunleyd