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
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
docs: Add instructions for quick local build using Docker
  • Loading branch information
jhf committed Oct 29, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 1b3dada379920289ed87b8f041cc65518398adab
22 changes: 21 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -78,7 +78,9 @@ See all installation instructions in the [repo wiki](https://github.com/supabase
| Supabase Postgres: PostgREST Bundle | Coming Soon | Coming Soon | Coming Soon |
| Supabase Postgres: Complete Bundle | Coming Soon | Coming Soon | Coming Soon |

### Quick Build
### Quick Cloud Build

Uses Amazon build cluster.

```bash
$ time packer build -timestamp-ui \
@@ -88,6 +90,24 @@ $ time packer build -timestamp-ui \
amazon-arm.json
```

### Quick Local Build

Uses docker
```bash
# Setup a docker buildx instance, if not already present.
docker buildx inspect || docker buildx create --use
# Build all architectures
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 \
.
```

After this you can use the `docker run custom_supabase_postgres` command to start your local instance.

## Motivation

- Make it fast and simple to get started with Postgres.