-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (27 loc) · 829 Bytes
/
Makefile
File metadata and controls
38 lines (27 loc) · 829 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
.PHONY: run test test-integration test-race load-test proto lint build docker k8s-apply
run:
go run ./cmd/server/...
test:
go test ./internal/... -v -race
test-integration:
go test -tags=integration ./tests/integration/... -v
test-race:
go test ./... -race
load-test:
k6 run ./tests/load/k6_ramp.js --out json=tests/load/benchmarks/result.json
load-test-vegeta:
./tests/load/vegeta_attack.sh 1000 60s
proto:
protoc --go_out=. --go-grpc_out=. proto/ratelimiter.proto
lint:
golangci-lint run ./...
build:
go build -o bin/server ./cmd/server/...
docker:
docker build -t rate-limiter:latest .
k8s-apply:
kubectl apply -f deploy/k8s/redis.yaml
kubectl apply -f deploy/k8s/configmap.yaml
kubectl apply -f deploy/k8s/deployment.yaml
kubectl apply -f deploy/k8s/service.yaml
kubectl apply -f deploy/k8s/hpa.yaml