-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FAB-7283] Update docs with new download link
- Add new bootstrap script with version parameters for fabric and fabric-ca with v1.0.5 as the default. This script is similar to the one in master but decided to have one in the release branch so that we can make sure that we can leverage the tagged release content in the docs - Update the link to download the v1.0.5 binaries and images. Change-Id: I84049bcdbcf4a790cfd1ea522d9a8f014452870e Signed-off-by: Gari Singh <[email protected]>
- Loading branch information
1 parent
140c45f
commit 2459adb
Showing
2 changed files
with
48 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
#!/bin/bash | ||
# | ||
# Copyright IBM Corp. All Rights Reserved. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
|
||
# current version of fabric released | ||
export VERSION=${1:-1.0.5} | ||
# current version of fabric-ca released | ||
export CA_VERSION=${2:-$VERSION} | ||
export ARCH=$(echo "$(uname -s|tr '[:upper:]' '[:lower:]'|sed 's/mingw64_nt.*/windows/')-$(uname -m | sed 's/x86_64/amd64/g')" | awk '{print tolower($0)}') | ||
#Set MARCH variable i.e ppc64le,s390x,x86_64,i386 | ||
MARCH=`uname -m` | ||
|
||
dockerFabricPull() { | ||
local FABRIC_TAG=$1 | ||
for IMAGES in peer orderer couchdb ccenv javaenv kafka zookeeper tools; do | ||
echo "==> FABRIC IMAGE: $IMAGES" | ||
echo | ||
docker pull hyperledger/fabric-$IMAGES:$FABRIC_TAG | ||
docker tag hyperledger/fabric-$IMAGES:$FABRIC_TAG hyperledger/fabric-$IMAGES | ||
done | ||
} | ||
|
||
dockerCaPull() { | ||
local CA_TAG=$1 | ||
echo "==> FABRIC CA IMAGE" | ||
echo | ||
docker pull hyperledger/fabric-ca:$CA_TAG | ||
docker tag hyperledger/fabric-ca:$CA_TAG hyperledger/fabric-ca | ||
} | ||
|
||
: ${CA_TAG:="$MARCH-$CA_VERSION"} | ||
: ${FABRIC_TAG:="$MARCH-$VERSION"} | ||
|
||
echo "===> Downloading platform binaries" | ||
curl https://nexus.hyperledger.org/content/repositories/releases/org/hyperledger/fabric/hyperledger-fabric/${ARCH}-${VERSION}/hyperledger-fabric-${ARCH}-${VERSION}.tar.gz | tar xz | ||
|
||
echo "===> Pulling fabric Images" | ||
dockerFabricPull ${FABRIC_TAG} | ||
|
||
echo "===> Pulling fabric ca Image" | ||
dockerCaPull ${CA_TAG} | ||
echo | ||
echo "===> List out hyperledger docker images" | ||
docker images | grep hyperledger* |