Skip to content

Commit 67ca4c6

Browse files
committed
FAB-10854 Update bootstrap script
This patch updates the bootstrap script to download the required images. Also, this change updates the binary section and the image references. Change-Id: I869ede83d82036d1c085ff83875b7aac4bf69e22 Signed-off-by: rameshthoomu <rameshbabu.thoomu@gmail.com>
1 parent 9acd9cd commit 67ca4c6

File tree

2 files changed

+22
-12
lines changed

2 files changed

+22
-12
lines changed

docs/source/install.rst

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ Hyperledger Fabric.
2626
documentation for `shared drives <https://docs.docker.com/docker-for-windows/#shared-drives>`__
2727
and use a location under one of the shared drives.
2828

29-
Determine a location on your machine where you want to place the Hyperledger
30-
Fabric Samples repository and enter that directory in a terminal window. The
29+
Determine a location on your machine where you want to place the `fabric-samples`
30+
repository and enter that directory in a terminal window. The
3131
command that follows will perform the following steps:
3232

33-
#. If needed, clone the hyperledger/fabric-samples repository
33+
#. If needed, clone the `hyperledger/fabric-samples` repository
3434
#. Checkout the appropriate version tag
3535
#. Install the Hyperledger Fabric platform-specific binaries and config files
3636
for the version specified into the root of the fabric-samples repository
@@ -43,6 +43,14 @@ Fabric Samples and binaries, go ahead and execute the following command:
4343
4444
curl -sSL http://bit.ly/2ysbOFE | bash -s 1.2.0-rc1
4545
46+
.. note:: If you want to download Fabric, Fabric-ca and thirdparty Docker images
47+
you must pass the version identifier to the script.
48+
49+
.. code:: bash
50+
51+
curl -sSL http://bit.ly/2ysbOFE | bash -s <fabric> <fabric-ca> <thirdparty>
52+
curl -sSL http://bit.ly/2ysbOFE | bash -s 1.2.0-rc1 1.2.0-rc1 0.4.8
53+
4654
.. note:: If you get an error running the above curl command, you may
4755
have too old a version of curl that does not handle
4856
redirects or an unsupported environment.
@@ -54,19 +62,20 @@ Fabric Samples and binaries, go ahead and execute the following command:
5462
https://github.com/hyperledger/fabric/blob/master/scripts/bootstrap.sh
5563

5664
.. note:: You can use the command above for any published version of Hyperledger
57-
Fabric. Simply replace '1.2.0-rc1' with the version identifier
65+
Fabric. Simply replace `1.2.0-rc1` with the version identifier
5866
of the version you wish to install.
5967

6068
The command above downloads and executes a bash script
6169
that will download and extract all of the platform-specific binaries you
6270
will need to set up your network and place them into the cloned repo you
63-
created above. It retrieves six platform-specific binaries:
71+
created above. It retrieves the following platform-specific binaries:
6472

6573
* ``cryptogen``,
6674
* ``configtxgen``,
6775
* ``configtxlator``,
6876
* ``peer``,
69-
* ``orderer``, and
77+
* ``orderer``,
78+
* ``idemixgen``, and
7079
* ``fabric-ca-client``
7180

7281
and places them in the ``bin`` sub-directory of the current working
@@ -87,10 +96,11 @@ The script lists out the Docker images installed upon conclusion.
8796

8897
Look at the names for each image; these are the components that will ultimately
8998
comprise our Hyperledger Fabric network. You will also notice that you have
90-
two instances of the same image ID - one tagged as "x86_64-1.x.x" and
91-
one tagged as "latest".
99+
two instances of the same image ID - one tagged as "amd64-1.x.x" and
100+
one tagged as "latest". Prior to 1.2.0, the image being downloaded was determined
101+
by ``uname -m`` and showed as "x86_64-1.x.x".
92102

93-
.. note:: On different architectures, the x86_64 would be replaced
103+
.. note:: On different architectures, the x86_64/amd64 would be replaced
94104
with the string identifying your architecture.
95105

96106
.. note:: If you have questions not addressed by this documentation, or run into

scripts/bootstrap.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,11 +174,11 @@ BINARIES=true
174174

175175
# Parse commandline args pull out
176176
# version and/or ca-version strings first
177-
if echo $1 | grep -q '\d'; then
177+
if [ ! -z $1 ]; then
178178
VERSION=$1;shift
179-
if echo $1 | grep -q '\d'; then
179+
if [ ! -z $1 ]; then
180180
CA_VERSION=$1;shift
181-
if echo $1 | grep -q '\d'; then
181+
if [ ! -z $1 ]; then
182182
THIRDPARTY_IMAGE_VERSION=$1;shift
183183
fi
184184
fi

0 commit comments

Comments
 (0)