-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
25 lines (19 loc) · 917 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
PROJECT_NAME= fetch-system-iac
test-package:
docker compose -p $(PROJECT_NAME) -f ./deploy/docker-compose.test.yml build
docker compose -p $(PROJECT_NAME) -f ./deploy/docker-compose.test.yml \
run server go test $(TEST_DIR)
docker compose -p $(PROJECT_NAME) -f ./deploy/docker-compose.test.yml down --remove-orphans
test-app:
docker compose -p $(PROJECT_NAME) -f ./deploy/docker-compose.test.yml up --attach server --build --abort-on-container-exit
docker compose -p $(PROJECT_NAME) -f ./deploy/docker-compose.test.yml down --remove-orphans
build-db-initer-app:
docker build -t fetch-system-db-initer:latest -f ./deploy/Dockerfile.dbiniter .
build-preparer-app:
docker build -t fetch-system-preparer:latest -f ./deploy/Dockerfile.preparer .
generate-proto:
@protocf --go_out=. ./api/protobuf/model.proto
generate-sqlc:
@sqlc generate -f ./api/sql/sqlc.yml
generate-wire:
@wire cmd/wire/wire_setup.go