-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
26 lines (20 loc) · 837 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
all: stored ctld apid
stored:
go build -o bin/stored cmd/stored/main.go
apid:
go build -o bin/apid cmd/apid/main.go
ctld:
go build -o bin/ctld cmd/ctld/main.go
pb:
protoc --go_out=. --go_opt=module=master-otel --go-grpc_out=. --go-grpc_opt=require_unimplemented_servers=false,module=master-otel proto/common/v1/*.proto
protoc --go_out=. --go_opt=module=master-otel --go-grpc_out=. --go-grpc_opt=require_unimplemented_servers=false,module=master-otel proto/stored/v1/*.proto
protoc --go_out=. --go_opt=module=master-otel --go-grpc_out=. --go-grpc_opt=require_unimplemented_servers=false,module=master-otel proto/ctld/v1/*.proto
init-db:
docker-compose kill postgres
docker-compose rm -f postgres
sudo rm -rf data
docker-compose up -d
clean-db:
docker-compose kill postgres
docker-compose rm -f postgres
sudo rm -rf data