Hyperledger Fabric structures

1. Prepare the environment:

Installation docker, git, go, curl

 2. Install fabric

Installation Reference: https://hyperledger-fabric.readthedocs.io/en/latest/install.html

2.1 Pull fabric source (can not download the source code, download HTTPS  :  //raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap.sh  script )

 # git clone "https://gerrit.hyperledger.org/r/fabric"

Under the clone, the directory is probably these elements:

 View the next bootstrap.sh script will download Binaries and Docker Images.

 download failed.

 You can find yourself a relatively fast download additional address: https: //nexus.hyperledger.org/content/repositories/releases/org/hyperledger/

The need to address configuration version in the script bootstrap.sh

增加 NEW_URL=https://nexus.hyperledger.org/content/repositories/releases/org/hyperledger/fabric/hyperledger-fabric/linux-amd64-1.4.4/

The original configuration shield

#download "${BINARY_FILE}" "https://github.com/hyperledger/fabric/releases/download/v${VERSION}/${BINARY_FILE}"

Add:

download "${BINARY_FILE}" "${NEW_URL}/${BINARY_FILE}"

配置截图如下:

 

 然后执行脚本:

 

 

 根据bootstrap.sh 脚本中默认的版本,打开官网(https://hub.docker.com/r/hyperledger/),可以提前下载好镜像。

 

 

本次下载的镜像                                                                              

docker pull hyperledger/fabric-peer:1.4                         peer模块镜像文件

docker pull hyperledger/fabric-tools:1.4                        相关工具镜像文件,包含了cryptogen、configtxgen、configtxlator等工具

docker pull hyperledger/fabric-orderer:1.4                    orderer节点库镜像文件

docker pull hyperledger/fabric-ca:1.4                            ca模块镜像文件

docker pull hyperledger/fabric-baseos:0.4.18 基础镜像文件,其他镜像文件在该镜像文件的基础上生成 docker pull hyperledger/fabric-kafka:0.4.18 kafka库镜像文件 docker pull hyperledger/fabric-zookeeper:0.4.18 zookeeper库镜像文件 docker pull hyperledger/fabric-couchdb:0.4.18 couchdb数据库镜像文件 docker pull hyperledger/fabric-baseimage:0.4.18 基础镜像文件包含了jdk、golang、nodejs等,可以用来生成chaincode 

Guess you like

Origin www.cnblogs.com/zoujiaojiao/p/11995921.html