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
Adding docker info from Murali, including
1) docker-compose file
2) instruction to run with docker images
Change-Id: I7b3511f3774e5490e42d7aba0a95691b5e08b166
Signed-off-by: Binh Q. Nguyen <[email protected]>
Copy file name to clipboardexpand all lines: docs/channel-setup.md
+57-16
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,6 @@
1
-
# Channel create/join chain support
1
+
# Multichannel Setup
2
+
3
+
This document describe the CLI for creating channels and directing peers to join channels. The CLI uses channel APIs that are also available in the SDK.
2
4
3
5
The channel commands are
4
6
* create - create a channel in the `orderer` and get back a genesis block for the channel
@@ -14,10 +16,59 @@ The commands are work in progress. In particular, there will be more configurati
14
16
https://jira.hyperledger.org/browse/FAB-1639
15
17
https://jira.hyperledger.org/browse/FAB-1580
16
18
```
17
-
Assuming the orderer and peer have been built, and the executables are available in build/bin directory. Switch to build/bin directory.
18
19
19
-
## Create a channel
20
-
### Using CLI in Vagrant environment
20
+
## Using docker
21
+
Pull the latest images from https://github.com/rameshthoomu/
22
+
23
+
### Create a channel
24
+
Copy [`docker-compose-channel.yml`](docker-compose-channel.yml) to your current directory.
25
+
26
+
_Bring up peer and orderer_
27
+
```
28
+
cd docs
29
+
docker-compose -f docker-compose-channel.yml up
30
+
```
31
+
32
+
`docker ps` should show containers `orderer` and `peer0` running.
33
+
34
+
_Ask orderer to create a channel_
35
+
Start the CLI container.
36
+
```
37
+
docker-compose -f docker-compose-channel.yml run cli
0 commit comments