@@ -2,8 +2,8 @@ Getting Started
2
2
===============
3
3
4
4
.. note :: These instructions have been verified to work against the
5
- version "1.0.0-alpha2 " tagged docker images and the pre-compiled
6
- setup utilities within the supplied tarball file. If you run
5
+ version "1.0.0-beta " tagged docker images and the pre-compiled
6
+ setup utilities within the supplied tar file. If you run
7
7
these commands with images or tools from the current master
8
8
branch, it is possible that you will see configuration and panic
9
9
errors.
@@ -40,44 +40,23 @@ Next, execute the following command:
40
40
41
41
.. code :: bash
42
42
43
- curl -sSL https://goo.gl/NIKLiU | bash
43
+ curl -sSL https://goo.gl/LQkuoh | bash
44
44
45
45
This command downloads and executes a bash script (``bootstrap.sh ``) that will
46
46
extract all of the necessary artifacts to set up your network and place them
47
47
into a folder named ``release ``.
48
48
49
- It also retrieves the two platform-specific binaries - ``cryptogen `` and
50
- ``configtxgen `` - which we'll use later. Finally, the script will
51
- download the Hyperledger Fabric docker images into your local Docker registry.
52
-
53
- The script lists out the docker images upon conclusion. You should see the
54
- following:
55
-
56
- .. code :: bash
57
-
58
- jdoe-mbp:< your_platform> johndoe$ docker images
59
- REPOSITORY TAG IMAGE ID CREATED SIZE
60
- hyperledger/fabric-couchdb latest 3d89ac4895f9 3 days ago 1.51 GB
61
- hyperledger/fabric-couchdb x86_64-1.0.0-alpha2 3d89ac4895f9 3 days ago 1.51 GB
62
- hyperledger/fabric-ca latest 86f4e4280690 3 days ago 241 MB
63
- hyperledger/fabric-ca x86_64-1.0.0-alpha2 86f4e4280690 3 days ago 241 MB
64
- hyperledger/fabric-kafka latest b77440c116b3 3 days ago 1.3 GB
65
- hyperledger/fabric-kafka x86_64-1.0.0-alpha2 b77440c116b3 3 days ago 1.3 GB
66
- hyperledger/fabric-zookeeper latest fb8ae6cea9bf 3 days ago 1.31 GB
67
- hyperledger/fabric-zookeeper x86_64-1.0.0-alpha2 fb8ae6cea9bf 3 days ago 1.31 GB
68
- hyperledger/fabric-orderer latest 9a63e8bac1f5 3 days ago 182 MB
69
- hyperledger/fabric-orderer x86_64-1.0.0-alpha2 9a63e8bac1f5 3 days ago 182 MB
70
- hyperledger/fabric-peer latest 23b4aedef57f 3 days ago 185 MB
71
- hyperledger/fabric-peer x86_64-1.0.0-alpha2 23b4aedef57f 3 days ago 185 MB
72
- hyperledger/fabric-javaenv latest a9ca2c90a6bf 3 days ago 1.43 GB
73
- hyperledger/fabric-javaenv x86_64-1.0.0-alpha2 a9ca2c90a6bf 3 days ago 1.43 GB
74
- hyperledger/fabric-ccenv latest c984ae2a1936 3 days ago 1.29 GB
75
- hyperledger/fabric-ccenv x86_64-1.0.0-alpha2 c984ae2a1936 3 days ago 1.29 GB
49
+ It also retrieves the two platform-specific binaries - ``cryptogen ``,
50
+ ``configtxgen `` and ``configtxlator `` - which we'll use later. Finally, the
51
+ script will download the Hyperledger Fabric docker images from
52
+ `DockerHub <https://hub.docker.com/u/hyperledger/ >`__ into
53
+ your local Docker registry.
76
54
55
+ The script lists out the docker images installed upon conclusion.
77
56
78
57
Look at the names for each image; these are the components that will ultimately
79
58
comprise our Fabric network. You will also notice that you have two instances
80
- of the same image ID - one tagged as "x86_64-1.0.0-alpha2 " and one tagged as "latest".
59
+ of the same image ID - one tagged as "x86_64-1.0.0-beta " and one tagged as "latest".
81
60
(Note that on different architectures, the x86_64 would be replaced with the string
82
61
identifying your architecture).
83
62
@@ -86,8 +65,35 @@ Want to run it now?
86
65
87
66
We provide a script that leverages these docker images to quickly bootstrap
88
67
a Fabric network, join peers to a channel, and drive transactions. If you're
89
- already familiar with Fabric or just want to see it in action, feel free to jump
90
- down to the :ref: `Network-Setup ` section and run the script.
68
+ already familiar with Fabric or just want to see it in action, we have provided
69
+ a script that runs an end-to-end sample application.
70
+
71
+ This script literally does it all. It calls ``generateArtifacts.sh `` to exercise
72
+ the ``cryptogen `` and ``configtxgen `` tools, followed by ``script.sh `` which
73
+ launches the network, joins peers to a generated channel and then drives
74
+ transactions. If you choose not to supply a channel ID, then the
75
+ script will use a default name of ``mychannel ``. The cli timeout parameter
76
+ is an optional value; if you choose not to set it, then your cli container
77
+ will exit upon conclusion of the script.
78
+
79
+ .. code :: bash
80
+
81
+ ./network_setup.sh up
82
+
83
+ OR
84
+
85
+ .. code :: bash
86
+
87
+ ./network_setup.sh up < channel-ID> < timeout-value>
88
+
89
+ Once the demo has completed execution, run it again to clean up...
90
+
91
+ The following will kill your containers, remove the crypto material and
92
+ four artifacts, and remove our the created chaincode images:
93
+
94
+ .. code :: bash
95
+
96
+ ./network_setup.sh down
91
97
92
98
If you'd like to learn more about the underlying tooling and bootstrap mechanics,
93
99
continue reading. In these next sections we'll walk through the various steps
@@ -481,18 +487,6 @@ the underlying flow and the appropriate syntax. Entering the commands manually
481
487
through the CLI is quite onerous, therefore we provide a few scripts to do the
482
488
entirety of the heavy lifting.
483
489
484
- Clean up
485
- ^^^^^^^^
486
-
487
- Let's clean up first...
488
-
489
- The following script will kill our containers, remove the crypto material and
490
- four artifacts, and remove our three chaincode images:
491
-
492
- .. code :: bash
493
-
494
- ./network_setup.sh down
495
-
496
490
.. _Network-Setup :
497
491
498
492
All in one
518
512
519
513
Now clean up...
520
514
515
+ The following script will kill our containers, remove the crypto material and
516
+ four artifacts, and remove our three chaincode images:
517
+
521
518
.. code :: bash
522
519
523
520
./network_setup.sh down
524
521
522
+
525
523
Config only
526
524
^^^^^^^^^^^
527
525
@@ -921,7 +919,7 @@ again.
921
919
Error connecting: rpc error: code = 14 desc = grpc: RPC failed fast due to transport failure
922
920
Error: rpc error: code = 14 desc = grpc: RPC failed fast due to transport failure
923
921
924
- Make sure you are running your network against "alpha2 " images that have been
922
+ Make sure you are running your network against the "beta " images that have been
925
923
retagged as "latest".
926
924
927
925
If you see the below error:
@@ -942,7 +940,7 @@ back and recreate your channel artifacts.
942
940
./network_setup.sh down
943
941
944
942
- If you see an error stating that you still have "active endpoints", then prune
945
- your docker networks. This will wipe your previous networks and start you with a
943
+ your docker networks. This will wipe your previous networks and start you with a
946
944
fresh environment:
947
945
948
946
.. code :: bash
0 commit comments