-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
50 lines (36 loc) · 953 Bytes
/
Copy pathMakefile
File metadata and controls
50 lines (36 loc) · 953 Bytes
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
50
.PHONY: build run test lint vuln fmt fmt-check docker-build docker-up demo-local smoke benchmark clean
BINARY=agentos
CONFIG=configs/agentos.yaml
GO_FILES=$(shell find . -name '*.go' -not -path './vendor/*')
build:
go build -o bin/$(BINARY) ./cmd/agentos
go build -o bin/agentctl ./cmd/agentctl
run: build
./bin/$(BINARY) --config $(CONFIG)
test:
go test ./... -v -race -count=1
lint:
golangci-lint run ./...
vuln:
go run golang.org/x/vuln/cmd/govulncheck@latest ./...
fmt:
gofmt -s -w $(GO_FILES)
fmt-check:
@files="$$(gofmt -l $(GO_FILES))"; \
if [ -n "$$files" ]; then \
echo "Go files need formatting:"; \
echo "$$files"; \
exit 1; \
fi
docker-build:
docker build -t agentos:latest .
docker-up:
docker compose -f deployments/docker-compose.yaml up --build
demo-local:
bash scripts/demos/local_demo.sh
smoke:
bash scripts/tooling/compose_smoke.sh
benchmark:
bash scripts/benchmarks/benchmark.sh
clean:
rm -rf bin/