Edit me

环境搭建

依赖安装

安装curl,从https://curl.haxx.se/download.html 下载curl安装 安装go 1.10之后版本: https://studygolang.com/dl 安装docker 17.06.02以后版本 npm 5.6版本 Python 2.7

SDK下载
go get -u github.com/hyperledger/fabric-sdk-go
# In the Fabric SDK Go directory
cd $GOPATH/src/github.com/hyperledger/fabric-sdk-go/

# Optional - Automatically install Go tools used by test suite
make depend-install

# Running test suite
make

# Clean test suite run artifacts
make clean
编译源码
go get github.com/hyperledger/fabric

先编译orderer,直接进入目录下make orderer即可,然后编译peers,peers的编译需要配置,因为网络原因只能手动操作。 进入目录,然后将go/bin目录下的工具都拷贝到我们编译出的build/docker/gotools/bin目录下。然后下载chaintool工具,从官网下载: https://nexus.hyperledger.org/content/repositories/releases/org/hyperledger/fabric/hyperledger-fabric/chaintool-1.0.0/hyperledger-fabric-chaintool-1.0.0.jar 然后把它移动到目录fabric/build/bin下并更名为chaintool,此时就可以编译fabric的docker了:

make docker

####


项目架构

01-1

Tags: