-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (27 loc) · 1.09 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
install-all:
go install github.com/deepmap/oapi-codegen/v2/cmd/oapi-codegen@latest
generate-all:
mkdir -p internal/generated/schema
oapi-codegen -package dto -generate chi-server,types,spec api/schema.yaml > internal/generated/schema/dto.gen.go
launch-dev-env:
sh ./dev/mongodb/start.sh
sh ./dev/kafka/start.sh
stop-dev-env:
sh ./dev/mongodb/stop.sh
sh ./dev/kafka/stop.sh
test:
go test ./...
lint:
golangci-lint run
launch-server:
go run ./cmd/server/main.go
launch-consumer:
go run ./cmd/consumer/llm_result/main.go
launch-worker:
go run ./cmd/worker/launch_llm_check/main.go
go run ./cmd/worker/drop_old_in_progress_llm_check/main.go
build-all-docker-images:
docker build -t common-backend-server:latest -f ./docker/server/Dockerfile .
docker build -t common-backend-consumer-llm-result:latest -f ./docker/consumer/llm_result/Dockerfile .
docker build -t common-backend-worker-drop-old-in-progress-llm-check:latest -f ./docker/worker/drop_old_in_progress_llm_check/Dockerfile .
docker build -t common-backend-worker-launch_llm_check:latest -f ./docker/worker/launch_llm_check/Dockerfile .