Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/support mac M architecture #1302

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

jhf
Copy link

@jhf jhf commented Oct 29, 2024

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 jhf requested a review from a team as a code owner October 29, 2024 12:31
@samrose
Copy link
Contributor

samrose commented Nov 5, 2024

@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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants