1 Star 0 Fork 1

闫熊猫/pier-client-fabric

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Makefile 975 Bytes
一键复制 编辑 原始数据 按行查看 历史
zhourong 提交于 2021-08-31 23:42 . feat: add init and start command
SHELL := /bin/bash
CURRENT_PATH = $(shell pwd)
DISTRO = $(shell uname)
CURRENT_TAG =$(shell git describe --abbrev=0 --tags)
GO = GO111MODULE=on go
help: Makefile
@echo "Choose a command run:"
@sed -n 's/^##//p' $< | column -t -s ':' | sed -e 's/^/ /'
prepare:
cd scripts && bash prepare.sh
## make test-coverage: Test project with cover
test-coverage:
@go test -short -coverprofile cover.out -covermode=atomic ${TEST_PKGS}
@cat cover.out >> coverage.txt
## make fabric1.4: build fabric(1.4) client plugin
fabric1.4:
@packr
mkdir -p build
$(GO) build -o build/fabric-client-1.4 ./*.go
docker:
mkdir -p build
cd build && rm -rf pier && cp -r ../../pier pier
cd ${CURRENT_PATH}
docker build -t meshplus/pier-fabric .
fabric1.4-linux:
cd scripts && sh cross_compile.sh linux-amd64 ${CURRENT_PATH}
release-binary:
mkdir -p build
$(GO) build -o build/fabric-client-${CURRENT_TAG}-${DISTRO} ./*.go
## make linter: Run golanci-lint
linter:
golangci-lint run
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/panda-yan/pier-client-fabric.git
git@gitee.com:panda-yan/pier-client-fabric.git
panda-yan
pier-client-fabric
pier-client-fabric
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385