-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
26 lines (19 loc) · 1.01 KB
/
Makefile
File metadata and controls
26 lines (19 loc) · 1.01 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
.PHONY: run-server run-agent fmt test proto ui-build ui-install
run-server:
go run ./cmd/telemetry-server -config configs/server.yaml
run-agent:
go run ./cmd/telemetry-agent -config configs/agent.yaml
fmt:
gofmt -w $(shell find . -name '*.go')
test:
go test ./...
ui-install:
cd web && pnpm install
ui-build:
cd web && pnpm run proto:gen && pnpm build
mkdir -p server/ui_dist
rsync -a --delete web/out/ server/ui_dist/
proto:
PATH="$(PATH):$$(go env GOPATH)/bin" protoc -I . --go_out=paths=source_relative:. agent/modules/cpu/pb/cpu.proto agent/modules/gpu/pb/gpu.proto agent/modules/memory/pb/memory.proto agent/modules/storage/pb/storage.proto agent/modules/network/pb/network.proto agent/modules/infiniband/pb/infiniband.proto agent/modules/process/pb/process.proto
PATH="$(PATH):$$(go env GOPATH)/bin" protoc -I . --go_out=paths=source_relative:. --go-grpc_out=paths=source_relative:. api/pb/telemetry.proto
PATH="$(PATH):$$(go env GOPATH)/bin" protoc -I . --go_out=paths=source_relative:. api/pb/http.proto