windows10安装fabric1.4.4samples,二进制文件和Docker映像

安装fabric Samples, Binaries和Docker Images

官方文档:https://hyperledger-fabric.readthedocs.io/en/release-1.4/install.html
如果下载最新版本,直接运行:

curl -sSL http://bit.ly/2ysbOFE | bash -s

下载特定版本,如Fabric1.4.4,Fabric-ca1.4.4,Docker images 0.4.18

curl -sSL http://bit.ly/2ysbOFE | bash -s -- 1.4.4 1.4.4 0.4.18

如果使用Docker Toolbox,需要把samples安装到C:\Users下。

主要问题:下载速度慢

解决方法:

方法一:

	连网线,挂vpn。

方法二:

	下载https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap.sh自行运行。

方法三:

	结合以上方法,分析bootstrap.sh文件。
	把bootstrap.sh文件保存到本地。
	自行下载fabric binaries,在fabric-samples中解压生成bin和config。
	下载链接:https://github.com/hyperledger/fabric/releases/download/v1.4.4/hyperledger-fabric-windows-amd64-1.4.4.tar
	(住:不同版本不同系统的链接不同,根据需要自行修改。)
	在bootstrap.sh文件中注释以下内容,之后运行。
pullBinaries() {

    # echo "===> Downloading version ${FABRIC_TAG} platform specific fabric binaries"
    # download "${BINARY_FILE}" "https://github.com/hyperledger/fabric/releases/download/v${VERSION}/${BINARY_FILE}"
    # if [ $? -eq 22 ]; then
    #    echo
    #    echo "------> ${FABRIC_TAG} platform specific fabric binary is not available to download <----"
    #    echo
    #    exit
    # fi

    echo "===> Downloading version ${CA_TAG} platform specific fabric-ca-client binary"
    download "${CA_BINARY_FILE}" "https://github.com/hyperledger/fabric-ca/releases/download/v${CA_VERSION}/${CA_BINARY_FILE}"
    if [ $? -eq 22 ]; then
        echo
        echo "------> ${CA_TAG} fabric-ca-client binary is not available to download  (Available from 1.1.0-rc1) <----"
        echo
        exit
    fi
}
发布了3 篇原创文章 · 获赞 0 · 访问量 422

猜你喜欢

转载自blog.csdn.net/oheyec_/article/details/104068917