Skip to content

Commit c799e3e

Browse files
committed
[FAB-6794] Bootstrap and download for v1.0.4
Added new bootstrap script for v1.0.4 and updated the download link on the samples page Change-Id: I85fbab4ad55ad6f45bc0060d01aeb4564b6a1d1e Signed-off-by: Gari Singh <[email protected]>
1 parent dfd1e94 commit c799e3e

File tree

2 files changed

+45
-1
lines changed

2 files changed

+45
-1
lines changed

docs/source/samples.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ you will extract the platform-specific binaries:
4444

4545
.. code:: bash
4646
47-
curl -sSL https://goo.gl/Q3YRTi | bash
47+
curl -sSL https://goo.gl/DA6xZ1 | bash
4848
4949
.. note:: If you get an error running the above curl command, you may
5050
have too old a version of curl. Please visit the

scripts/bootstrap-1.0.4.sh

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
#!/bin/bash
2+
#
3+
# Copyright IBM Corp. All Rights Reserved.
4+
#
5+
# SPDX-License-Identifier: Apache-2.0
6+
#
7+
8+
export VERSION=1.0.4
9+
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)}')
10+
#Set MARCH variable i.e ppc64le,s390x,x86_64,i386
11+
MARCH=`uname -m`
12+
13+
dockerFabricPull() {
14+
local FABRIC_TAG=$1
15+
for IMAGES in peer orderer couchdb ccenv javaenv kafka zookeeper tools; do
16+
echo "==> FABRIC IMAGE: $IMAGES"
17+
echo
18+
docker pull hyperledger/fabric-$IMAGES:$FABRIC_TAG
19+
docker tag hyperledger/fabric-$IMAGES:$FABRIC_TAG hyperledger/fabric-$IMAGES
20+
done
21+
}
22+
23+
dockerCaPull() {
24+
local CA_TAG=$1
25+
echo "==> FABRIC CA IMAGE"
26+
echo
27+
docker pull hyperledger/fabric-ca:$CA_TAG
28+
docker tag hyperledger/fabric-ca:$CA_TAG hyperledger/fabric-ca
29+
}
30+
31+
: ${CA_TAG:="$MARCH-$VERSION"}
32+
: ${FABRIC_TAG:="$MARCH-$VERSION"}
33+
34+
echo "===> Downloading platform binaries"
35+
curl https://nexus.hyperledger.org/content/repositories/releases/org/hyperledger/fabric/hyperledger-fabric/${ARCH}-${VERSION}/hyperledger-fabric-${ARCH}-${VERSION}.tar.gz | tar xz
36+
37+
echo "===> Pulling fabric Images"
38+
dockerFabricPull ${FABRIC_TAG}
39+
40+
echo "===> Pulling fabric ca Image"
41+
dockerCaPull ${CA_TAG}
42+
echo
43+
echo "===> List out hyperledger docker images"
44+
docker images | grep hyperledger*

0 commit comments

Comments
 (0)