美文网首页
2020-01-15

2020-01-15

作者: 小丹子1o1 | 来源:发表于2020-01-16 17:54 被阅读0次

    https://github.com/hyperledger/fabric/blob/master/scripts/bootstrap.sh

    下载docker镜像

    dockerPull() 函数
    peer orderer ccenv tools
    
    docker pull "hyperledger/fabric-peer:x86_64-1.4.4
    docker pull "hyperledger/fabric-orderer:x86_64-1.4.4
    docker pull "hyperledger/fabric-ccenv:x86_64-1.4.4
    docker pull "hyperledger/fabric-tools:x86_64-1.4.4
    
    pullDockerImages() 函数
    拉取三方的镜像 couchdb kafka zookeeper
    
    docker pull "hyperledger/fabric-couchdb:x86_64-1.4.4
    docker pull "hyperledger/fabric-kafka:x86_64-1.4.4
    docker pull "hyperledger/fabric-zookeeper:x86_64-1.4.4
    
    拉取的ca镜像(证书管理中心)
    
    docker pull "hyperledger/fabric-ca:x86_64-1.4.4
    
    cloneSamplesRepo() 函数
    git clone -b master https://github.com/hyperledger/fabric-samples.git
    下载实例代码仓库
    
    download() 函数
    工具函数,用来进行下载操作
    
    pullBinaries() 函数
    
    VERSION=1.4.4
    CA_VERSION=1.4.4
    BINARY_FILE=hyperledger-fabric-${ARCH}-${VERSION}.tar.gz
    CA_BINARY_FILE=hyperledger-fabric-ca-${ARCH}-${CA_VERSION}.tar.gz
    ARCH=$(echo "$(uname -s|tr '[:upper:]' '[:lower:]'|sed 's/mingw64_nt.*/windows/')-$(uname -m | sed 's/x86_64/amd64/g')")
    
    下载二进制工具
    
    "https://github.com/hyperledger/fabric/releases/download/v${VERSION}/${BINARY_FILE}"
    https://github.com/hyperledger/fabric/releases/download/v1.4.4/hyperledger-fabric-linux-amd64-1.4.4.tar.gz
    
    下载平台ca相关的二进制工具
    https://github.com/hyperledger/fabric-ca/releases/download/v${CA_VERSION}/${CA_BINARY_FILE}
    https://github.com/hyperledger/fabric-ca/releases/download/v1.4.4/hyperledger-fabric-ca-linux-amd64-1.4.4.tar.gz
    
    pullDockerImages() 函数
    拉取镜像
    

    相关文章

      网友评论

          本文标题:2020-01-15

          本文链接:https://www.haomeiwen.com/subject/mvotzctx.html