安裝fabric二進制文件下載速度慢

安裝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下。

主要問題:下載速度慢

解決方法:

方法一:

	連網線,科學上網。

方法二:

	下載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
}
發佈了4 篇原創文章 · 獲贊 0 · 訪問量 924
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章