From 1415d36cc52a2f005eaf4aee80c33168a50170d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rgen=20H=2E=20Fjeld?= Date: Tue, 29 Oct 2024 10:29:43 +0100 Subject: [PATCH] docs: Add instructions for quick local build using Docker --- README.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c2663c056..59e51e645 100644 --- a/README.md +++ b/README.md @@ -80,7 +80,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 \ @@ -90,6 +92,19 @@ $ time packer build -timestamp-ui \ amazon-arm.json ``` +### Quick Local Build + +Uses docker +```bash +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 \ + . +``` + ## Motivation - Make it fast and simple to get started with Postgres.