forked from meshery/meshery-nighthawk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (27 loc) · 952 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
check:
golangci-lint run
protoc-setup:
cd meshes
wget https://raw.githubusercontent.com/meshery/meshery/master/meshes/meshops.proto
proto:
protoc -I meshes/ meshes/meshops.proto --go_out=plugins=grpc:./meshes/
docker:
DOCKER_BUILDKIT=1 docker build -t layer5/meshery-perf .
docker-run:
(docker rm -f meshery-perf) || true
docker run --name meshery-perf -d \
-p 10000:10000 \
-e DEBUG=true \
layer5/meshery-perf:edge-latest
run:
DEBUG=true GOPROXY=direct GOSUMDB=off go run main.go
run-force-dynamic-reg:
FORCE_DYNAMIC_REG=true DEBUG=true GOPROXY=direct GOSUMDB=off go run main.go
error:
go run github.com/meshery/meshkit/cmd/errorutil -d . analyze -i ./helpers -o ./helpers
test:
export CURRENTCONTEXT="$(kubectl config current-context)"
echo "current-context:" ${CURRENTCONTEXT}
export KUBECONFIG="${HOME}/.kube/config"
echo "environment-kubeconfig:" ${KUBECONFIG}
GOPROXY=direct GOSUMDB=off GO111MODULE=on go test -v ./...