File tree 3 files changed +9
-2
lines changed
3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -10,29 +10,34 @@ GOBIN=$(shell go env GOBIN)
10
10
endif
11
11
12
12
13
- # Test covergae
14
13
.PHONY : coverage
14
+ # # Run Go tests and Go tool cover
15
15
coverage :
16
16
go test -v ./... -coverprofile cover.out
17
17
go tool cover -html=cover.out -o cover.html
18
18
19
19
.PHONY : go-mod-tidy
20
+ # # Run go mod tidy
20
21
go-mod-tidy :
21
22
./scripts/go-mod-tidy.sh
22
23
23
24
.PHONY : check
25
+ # # Run go lint checks
24
26
check :
25
27
$(GOBIN ) /golangci-lint run ./...
26
28
27
29
.PHONY : build
30
+ # # Build MeshSync as Go binary
28
31
build :
29
32
go build -o bin/meshsync main.go
30
33
31
- .PHONY : docker-check
34
+ .PHONY : docker-build
35
+ # # Build MeshSync Docker container
32
36
docker : check
33
37
docker build -t layer5/meshery-meshsync .
34
38
35
39
.PHONY : docker-run
40
+ # # Run latest MeshSync Docker container
36
41
docker-run :
37
42
(docker rm -f meshery-meshsync) || true
38
43
docker run --name meshery-meshsync -d \
@@ -41,12 +46,14 @@ docker-run:
41
46
layer5/meshery-meshsync
42
47
43
48
.PHONY : run-check
49
+ # # Build and run MeshSync locally
44
50
run : check
45
51
go$(v ) mod tidy; \
46
52
DEBUG=true GOPROXY=direct GOSUMDB=off go run main.go
47
53
48
54
49
55
# runs a local instance of nats server in detached mode
50
56
PHONY : nats
57
+ # # Run NATS in Docker
51
58
nats :
52
59
docker run --name nats --rm -p 4222:4222 -p 8222:8222 -d nats --http_port 8222
You can’t perform that action at this time.
0 commit comments