You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[FAB-4458] Incremental downloads in bootstrap script
When a network failure occurs, bootstrap.sh will restart the download
using the curl -C option which provides resuming capabilities. The
Nexus repo, however, has some limitations which cause curl to return
error codes even when the download succeeds (see comments in the script).
They have been treated in the script. This will allow failed downloads
to be treated automatically, making the documentation leaner. Several
scenarios were tested in RHEL 7.4 and Ubuntu 14.04.
Patch-set #5: Rebase + incremental download of Fabric-CA binaries
+ handling of 404 errors (requested file isn't available)
Change-Id: If8e4da57b2c19431c2d098590ff3bbd87dfa83d6
Signed-off-by: Phillip Viana <phillip.l.viana@gmail.com>
Signed-off-by: Arnaud J Le Hors <lehors@us.ibm.com>
echo"==> There was an error downloading the binary file. Switching to incremental download."
125
+
echo"==> Downloading file..."
126
+
binaryIncrementalDownload ${BINARY_FILE}${URL}
127
+
else
128
+
echo"==> Done."
129
+
fi
130
+
fi
131
+
}
132
+
75
133
binariesInstall() {
76
134
echo"===> Downloading version ${FABRIC_TAG} platform specific fabric binaries"
77
-
curl https://nexus.hyperledger.org/content/repositories/releases/org/hyperledger/fabric/hyperledger-fabric/${ARCH}-${VERSION}/hyperledger-fabric-${ARCH}-${VERSION}.tar.gz | tar xz
echo"------> ${FABRIC_TAG} platform specific fabric binary is not available to download <----"
139
+
echo
140
+
fi
78
141
79
142
echo"===> Downloading version ${CA_TAG} platform specific fabric-ca-client binary"
80
-
curl https://nexus.hyperledger.org/content/repositories/releases/org/hyperledger/fabric-ca/hyperledger-fabric-ca/${ARCH}-${VERSION}/hyperledger-fabric-ca-${ARCH}-${VERSION}.tar.gz | tar xz
0 commit comments