-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
49 lines (38 loc) · 1.09 KB
/
Makefile
File metadata and controls
49 lines (38 loc) · 1.09 KB
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
42
43
44
45
46
47
48
49
.PHONY: all proto run-go run-dotnet up down logs
PROTO_DIR = proto/pix.proto
GO_DIR = services/pix-key-manager
DOTNET_DIR = src/PixLedger.Api
proto:
@echo "generating protobuf files"
@echo " [1/2] generating golang"
@rm -f $(GO_DIR)/pb/*.go
protoc -I=proto \
--go_out=$(GO_DIR)/pb/proto --go_opt=paths=source_relative \
--go-grpc_out=$(GO_DIR)/pb/proto --go-grpc_opt=paths=source_relative \
pix.proto
@echo " [2/2] generating dotnet"
dotnet build $(DOTNET_DIR) --nologo --verbosity quiet
run-go:
@echo "running go grpc..."
cd $(GO_DIR) && go run cmd/server/main.go
watch-run-dotnet:
@echo "running .net api..."
dotnet watch run --project $(DOTNET_DIR)
run-dotnet:
@echo "running .net api..."
dotnet run --project $(DOTNET_DIR)
up:
docker-compose up -d
up-all:
docker-compose --profile app up -d
down:
docker compose --profile app down
docker-build:
docker compose --profile app up -d --build
tree:
tree -I "bin|obj|Properties|*.user|*.cache"
k6:
@echo "cleaning redis"
@echo "cleaning postgresql [todo]"
@docker compose exec redis redis-cli FLUSHALL
@k6 run tests/load-test.js