-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
23 lines (23 loc) · 1 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
docker-build:
docker build -t ngbiz .
docker-run: docker-build
docker run -p 52520:52520 -p 52521:52521 -v ~/.ngdb:/.ngdb ngbiz --in-mem --log-level debug
docker-run-bootstrap: docker-build
docker run -p 52520:52520 -p 52521:52521 -v ~/.ngdb:/.ngdb ngbiz --bootstrap --in-mem --log-level debug
run:
go run -ldflags "-X main.Commit=`git rev-parse HEAD` -X main.Tag=`git describe --tags --abbrev=0`" ./cmd/ngbiz
build:
go build -ldflags "-X main.Commit=`git rev-parse HEAD` -X main.Tag=`git describe --tags --abbrev=0`" ./cmd/ngbiz
mining: build
./ngbiz --mining 0 --in-mem
bootstrap: build
./ngbiz --bootstrap --in-mem
clean:
rm ~/ngdb
build-miner:
go build -ldflags "-X main.Commit=`git rev-parse HEAD` -X main.Tag=`git describe --tags --abbrev=0`" ./cmd/coreminer
run-miner:
go run -ldflags "-X main.Commit=`git rev-parse HEAD` -X main.Tag=`git describe --tags --abbrev=0`" ./cmd/coreminer
gazelle:
bazel run //:gazelle -- -go_prefix github.com/ngchain/ngbiz
bazel run //:gazelle -- update-repos -from_file=go.mod