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
{{ message }}
This repository was archived by the owner on Jan 27, 2022. It is now read-only.
Hyperledger Fabric is an enterprise, private, permissioned blockchain network.
8
-
To run Fabric with Hyperledger Avalon on a single machine (both Avalon and Fabric network are running on same machine.)
8
+
To run Fabric with Hyperledger Avalon on a single machine (both Avalon and Fabric network running on same machine),
9
9
follow these steps:
10
10
11
11
1. Set the environment variable ``TCF_HOME`` to the Avalon root directory.
@@ -17,7 +17,7 @@ follow these steps:
17
17
18
18
2. Install ``curl``, ``docker`` and ``docker-compose``.
19
19
See `PREREQUISITES <../PREREQUISITES.md#docker>`_
20
-
for instructions for Docker.
20
+
for instructions on Docker.
21
21
22
22
3. Proxy configuration (optional).
23
23
If the host machine is behind any network firewall/proxy, you need to
@@ -28,7 +28,7 @@ follow these steps:
28
28
http_proxy=<http-proxy-url>:<port>
29
29
https_proxy=<https-proxy-url>:<port>
30
30
31
-
By default minifab creates 3 orderers, 2 peers with 2 organisations.
31
+
By default minifab creates 3 orderers, 2 peers with 2 organizations.
32
32
The ``no_proxy`` for this setup is as follows (all on one line):
33
33
34
34
.. code:: sh
@@ -38,7 +38,7 @@ follow these steps:
38
38
peer2.org0.example.com,peer1.org0.example.com
39
39
export NO_PROXY=$no_proxy
40
40
41
-
If you modify the number of orderers, peers, or organisations,
41
+
If you modify the number of orderers, peers, or organizations,
42
42
please update the ``no_proxy`` list accordingly.
43
43
44
44
4. Start the Fabric network with 2 organizations, 4 peers and 3 orderers
@@ -49,13 +49,13 @@ follow these steps:
49
49
cd$TCF_HOME
50
50
./scripts/start_fabric.sh -u
51
51
52
-
Starting Fabric Docker containers will take some time.
52
+
Starting Fabric docker containers will take some time.
53
53
Once it is up and running, type
54
54
``docker ps``
55
55
and check for Fabric Docker containers named
56
56
``peer-*``, ``orderer-*``, and ``dev-*``
57
57
58
-
5. Start the Avalon Docker containers
58
+
5. Start the Avalon docker containers
59
59
60
60
.. code:: sh
61
61
@@ -69,10 +69,10 @@ follow these steps:
69
69
70
70
To run in Intel SGX hardware mode, use the corresponding docker compose file for singleton or worker pool mode (as specified in `BUILD.md <../BUILD.md>`_).
71
71
72
-
Once the Fabric containers are up and running we can start and stop Avalon
72
+
Once the Fabric containers are up and running, we can start and stop Avalon
73
73
containers any number of times without restarting the Fabric containers.
74
74
To save time, omit the ``--build`` parameter after running the first time
75
-
so it will not rebuild Avalon.
75
+
so you do not rebuild Avalon.
76
76
77
77
6. Go to the ``avalon-shell`` container to run ``generic_client.py``:
78
78
@@ -93,36 +93,36 @@ follow these steps:
93
93
94
94
./scripts/start_fabric.sh -d
95
95
96
-
Setup Hyperledger Avalon Fabric Proxy Model on multiple machine
96
+
Setup Hyperledger Avalon Fabric Proxy Model on multiple machines
Multinode Hyperledger Avalon fabric proxy model setup requires certain modifications to existing
99
-
Docker files. For example to setup the fabric blockchain network on a separate machine and Avalon on a separate machine
98
+
Multinode Hyperledger Avalon Fabric proxy model setup requires certain modifications to the existing
99
+
docker files. For example to setup the Fabric blockchain network on a separate machine and Avalon on a separate machine
100
100
requires below changes.
101
101
102
-
1. On machine1(with ip address IP1)need to run the minifab if you are choose to setup fabric on single machine.
103
-
Or else if you chose the any customized way other than minifab to setup a fabric network on multiple nodes, then it is mandatory to deploy
104
-
the Avalon chaincodes which are located in (https://github.com/hyperledger/avalon/tree/master/sdk/avalon_sdk/connector/blockchains/fabric/chaincode)
102
+
1. On machine1(with ip address IP1), you need to run the minifab if you choose to setup fabric on single machine.
103
+
Otherwise if you choose any customized way other than minifab to setup a fabric network on multiple nodes, then it is mandatory to deploy
104
+
the Avalon chaincodes which are located at https://github.com/hyperledger/avalon/tree/master/sdk/avalon_sdk/connector/blockchains/fabric/chaincode.
105
105
106
106
.. code:: sh
107
107
108
108
cd$TCF_HOME
109
109
./scripts/start_fabric.sh -e
110
110
111
-
start_fabric.sh with option -e exposes the ports to host machine and it generates the network profile with host ip in network config file.
111
+
start_fabric.sh with option -e exposes the ports to host machine and it generates the network profile with host ip in the network config file.
112
112
113
-
2. On machine2 (with ip address IP2) where Avalon is going to setup, copy the crypto materials used to setup the fabric network to home directory.
114
-
Avalon shell and Avalon fabric connector need these crypto materials to interact with the blockchain.
113
+
2. On machine2 (with ip address IP2) where Avalon is going to be setup, copy the crypto materials used to setup the Fabric network to home directory.
114
+
Avalon shell and Avalon Fabric connector need these crypto materials to interact with the blockchain.
115
115
116
116
.. code:: sh
117
117
118
118
scp -r $TCF_HOME/mywork <user_name>@<IP1>:~/
119
119
120
-
3. If you choose the customized setup other than the start_fabric.sh (minifab) then create the network.json as in (https://github.com/hyperledger/avalon/blob/master/sdk/avalon_sdk/connector/blockchains/fabric/network.json)
120
+
3. If you choose a customized setup other than start_fabric.sh (minifab) then create the network.json as in https://github.com/hyperledger/avalon/blob/master/sdk/avalon_sdk/connector/blockchains/fabric/network.json
121
121
122
-
4. If these 2 matchines are behind the corporate network please update environment variables `no_proxy` and `NO_PROXY`
122
+
4. If these 2 machines are in corporate network, please update environment variables `no_proxy` and `NO_PROXY`
123
123
with the IP1 on machine2 as mentioned above.
124
124
125
-
5. Remove the network tag from the Docker compose file - https://github.com/hyperledger/avalon/blob/master/docker/compose/avalon-fabric.yaml#L55
125
+
5. Remove the network tag from the Docker compose file - https://github.com/hyperledger/avalon/blob/master/docker/compose/avalon-fabric.yaml#L62
126
126
127
127
6. Start the Avalon components.
128
128
@@ -138,7 +138,7 @@ requires below changes.
138
138
139
139
To run in Intel SGX hardware mode, use the corresponding Docker compose file for singleton or worker pool mode (as specified in BUILD.md).
140
140
141
-
7. To test using fabric generic client.
141
+
7. To test using Fabric generic client.
142
142
Go to the avalon-shell container to run generic_client.py
143
143
144
144
.. code:: sh
@@ -201,4 +201,4 @@ Troubleshooting
201
201
202
202
Group ``docker`` should appear in the output.
203
203
The Docker ``hello-world`` container should download, run without error,
0 commit comments