-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
41 lines (31 loc) · 973 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
all: lint test build
test:
go mod tidy
go test -timeout=10s -race -benchmem ./...
build:
./scripts/compile.sh
lint: bin/golangci-lint
go fmt ./...
go vet ./...
bin/golangci-lint -c .golangci.yml run ./...
bin/golangci-lint:
wget -O- -nv https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.55.2
setup: bin/golangci-lint
go mod download
image-build:
docker build -t sidecar .
image-push: image-build
docker image tag sidecar:latest localhost:32000/sidecar
docker push localhost:32000/sidecar
deploy: image-push
kubectl rollout restart deployment sender
kubectl rollout restart deployment pt-en
kubectl rollout restart deployment en-pt
kubectl rollout restart deployment en-es
latency-test-web:
hey -c 2 -z 80s http://10.152.183.73:8080/web
hey -c 1 -z 80s http://10.152.183.73:8080/web
latency-test-queue:
hey -c 2 -z 80s http://10.152.183.73:8080/queue
sleep 40
hey -c 1 -z 80s http://10.152.183.73:8080/queue