Skip to content

Commit 27e7b37

Browse files
committed
chore: enhance executable status and makefile
Signed-off-by: Lee Calcote <[email protected]>
1 parent 7c38aca commit 27e7b37

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

Makefile

+9-2
Original file line numberDiff line numberDiff line change
@@ -10,29 +10,34 @@ GOBIN=$(shell go env GOBIN)
1010
endif
1111

1212

13-
# Test covergae
1413
.PHONY: coverage
14+
## Run Go tests and Go tool cover
1515
coverage:
1616
go test -v ./... -coverprofile cover.out
1717
go tool cover -html=cover.out -o cover.html
1818

1919
.PHONY: go-mod-tidy
20+
## Run go mod tidy
2021
go-mod-tidy:
2122
./scripts/go-mod-tidy.sh
2223

2324
.PHONY: check
25+
## Run go lint checks
2426
check:
2527
$(GOBIN)/golangci-lint run ./...
2628

2729
.PHONY: build
30+
## Build MeshSync as Go binary
2831
build:
2932
go build -o bin/meshsync main.go
3033

31-
.PHONY: docker-check
34+
.PHONY: docker-build
35+
## Build MeshSync Docker container
3236
docker: check
3337
docker build -t layer5/meshery-meshsync .
3438

3539
.PHONY: docker-run
40+
## Run latest MeshSync Docker container
3641
docker-run:
3742
(docker rm -f meshery-meshsync) || true
3843
docker run --name meshery-meshsync -d \
@@ -41,12 +46,14 @@ docker-run:
4146
layer5/meshery-meshsync
4247

4348
.PHONY: run-check
49+
## Build and run MeshSync locally
4450
run: check
4551
go$(v) mod tidy; \
4652
DEBUG=true GOPROXY=direct GOSUMDB=off go run main.go
4753

4854

4955
# runs a local instance of nats server in detached mode
5056
PHONY: nats
57+
## Run NATS in Docker
5158
nats:
5259
docker run --name nats --rm -p 4222:4222 -p 8222:8222 -d nats --http_port 8222

scripts/go-mod-tidy.sh

100644100755
File mode changed.

scripts/go-test.sh

100644100755
File mode changed.

0 commit comments

Comments
 (0)