Syn the usage of kafka from latest e2e_cli

pull/98/head
qiang0723 2017-08-22 16:42:29 +00:00
parent 35be936bdf
commit 5cafc938a1
1 changed files with 12 additions and 3 deletions

View File

@ -3,13 +3,22 @@
## Start a network base on kafka
```bash
$ docker-compose -f orderer-kafka.yaml up
$ cd ~/docker-compose-files/tree/master/hyperledger/1.0/kafka
$ docker-compose -f orderer-kafka.yaml up (-d)
```
When the fabric-network fully started, it takes about 15-20s.
### Chaincode
## Test chaincode
```bash
$ docker exec -it fabric-cli bash
$ bash ./scripts/initialize.sh
$ bash ./scripts/initialize.sh # initialize the fabric network
$ bash ./scripts/test_4peers.sh
```
>(Optional) If you want to use official images, you can run the following command first
>
> ```bash
> $ cd ~/docker-compose-files/tree/master/hyperledger/1.0
> $ bash ./scripts/download_official_images.sh
> ```