-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (31 loc) · 901 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
DB_NAME:=ictunion
DB_SUPERUSER:=postgres
DB_PORT:=5432
DB_PASSWORD:=superuser
DB_HOST:=localhost
KEYCLOAK_USER:=admin
KEYCLOAK_PASSWORD:=admin
orca/result:
pushd orca && nix build
.PHONY: postgres
postgres:
DB_USER=$(DB_SUPERUSER) DB_NAME=$(DB_NAME) DB_PASSWORD=$(DB_PASSWORD) \
docker compose up postgres
.PHONY: up
up:
DB_USER=$(DB_SUPERUSER) DB_NAME=$(DB_NAME) DB_PASSWORD=$(DB_PASSWORD) JWT_SECRET=$(JWT_SECRET) PGRST_JWT_ROLE_CLAIM_KEY=$(PGRST_JWT_ROLE_CLAIM_KEY) \
KEYCLOAK_USER=$(KEYCLOAK_USER) KEYCLOAK_PASSWORD=$(KEYCLOAK_PASSWORD) \
docker compose up
.PHONY: migrate
migrate:
pushd gray-whale; refinery migrate -p ./migrations; popd;
.PHONY: psql
psql:
PGPASSWORD=$(DB_PASSWORD) psql -h $(DB_HOST) -p $(DB_PORT) -d $(DB_NAME) -U $(DB_SUPERUSER)
.PHONY: orca
orca: orca/result
pushd orca && ./result/bin/orca
.PHONY: clean
clean:
$(RM) keycloak-certs
$(RM) orca/result