Skip to content

Commit

Permalink
chore: implement script to sync config of infra
Browse files Browse the repository at this point in the history
  • Loading branch information
leynier committed Aug 21, 2022
1 parent 41ee2dd commit 896a40c
Show file tree
Hide file tree
Showing 5 changed files with 292 additions and 10 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ clean_infra:
docker-compose down --remove-orphans &&\
docker system prune -a --volumes -f

sync_infra:
python scripts/gh-download.py --repo=supabase/gotrue-js --branch=master --folder=infra

run_tests: run_infra sleep tests

build_sync:
Expand Down
10 changes: 4 additions & 6 deletions infra/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# docker-compose.yml
version: '3'
services:
gotrue:
# Signup enabled, autoconfirm off
gotrue: # Signup enabled, autoconfirm off
image: supabase/gotrue:latest
ports:
- '9999:9999'
Expand Down Expand Up @@ -42,8 +41,7 @@ services:
depends_on:
- db
restart: on-failure
autoconfirm:
# Signup enabled, autoconfirm on
autoconfirm: # Signup enabled, autoconfirm on
image: supabase/gotrue:latest
ports:
- '9998:9998'
Expand Down Expand Up @@ -72,8 +70,7 @@ services:
depends_on:
- db
restart: on-failure
disabled:
# Signup disabled
disabled: # Signup disabled
image: supabase/gotrue:latest
ports:
- '9997:9997'
Expand Down Expand Up @@ -112,6 +109,7 @@ services:
image: supabase/postgres:14.1.0
ports:
- '5432:5432'
command: postgres -c config_file=/etc/postgresql/postgresql.conf
volumes:
- ./db:/docker-entrypoint-initdb.d/
environment:
Expand Down
166 changes: 162 additions & 4 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Faker = "^14.1.0"
flake8 = "^5.0.4"
isort = "^5.10.1"
pre-commit = "^2.20.0"
PyGithub = "^1.55"
pytest = "^7.1.2"
pytest-asyncio = "^0.19.0"
pytest-cov = "^3.0.0"
Expand Down

0 comments on commit 896a40c

Please sign in to comment.