前提,安装docker, curl, go,nodejs,jdk,参考https://my.oschina.net/u/1760711/blog/1530513
1. 下载 运行 https://github.com/hyperledger/fabric/blob/master/scripts/bootstrap.sh
$ cd ~/dev/hyperledger
$ ./bootstrap.sh
这个脚本中内置了一个版本,我运行的时候是1.0.4。
2. 设置GOPATH为/opt/gopath,因为example中很多yaml写死了这个路径,所以下面执行git clone目录应为 /opt/gopath/src/github.com/hyperledger/
git clone https://github.com/hyperledger/fabric.git
git clone https://github.com/hyperledger/fabric-ca.git
3. Run e2e test
cd /opt/gopath/src/github.com/hyperledger/fabric/examples/e2e_cli/
./network_setup.sh up