-
Notifications
You must be signed in to change notification settings - Fork 15
/
makefile
41 lines (32 loc) · 1.06 KB
/
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
39
40
41
keys:
go run ./tools/gentinkey .local/tink-aead.json .local/tink-mac.json .local/tink-jwt-mac.json
docker compose -f docker-compose.keys.yml up
docker compose -f docker-compose.keys.yml down
generate:
go generate ./...
go mod tidy
build:
go build ./...
test:
cd .dagger && go run . ..
ci:
docker run --rm -i \
-v /var/run/docker.sock:/var/run/docker.sock \
-v "$$(pwd):$$(pwd)" -w "$$(pwd)" \
$$(DOCKER_BUILDKIT=1 docker build -f .dagger/Dockerfile --label test -q .dagger)
docker rmi -f $$(docker images -q --filter=label=test) || true
start:
docker compose up --build profile
debug:
PROFILE_DOCKERFILE_TARGET=debugger docker compose up --build profile
stop:
docker compose down
purge:
docker compose -f docker-compose.yml down --volumes
explain:
@docker compose up -d postgres
@go mod edit -replace github.com/sqlc-dev/sqlc=github.com/telkomindonesia/sqlc@v0.0.0-20240919043553-64214ea9cd12
@go mod tidy
@go run github.com/sqlc-dev/sqlc/cmd/sqlc explain -f ./internal/postgres/sqlc.yaml
@go mod edit -dropreplace github.com/sqlc-dev/sqlc
@go mod tidy