docker-compose-files/hyperledger_fabric/v1.0.0/kafka/README.md

25 lines
598 B
Markdown
Raw Normal View History

2017-07-10 17:19:29 +08:00
[WIP]
## Start a network base on kafka
```bash
$ cd ~/docker-compose-files/tree/master/hyperledger/1.0/kafka
$ docker-compose -f orderer-kafka.yaml up (-d)
2017-07-10 17:19:29 +08:00
```
When the fabric-network fully started, it takes about 15-20s.
2017-07-10 17:19:29 +08:00
## Test chaincode
2017-07-10 17:19:29 +08:00
```bash
$ docker exec -it fabric-cli bash
$ bash ./scripts/initialize.sh # initialize the fabric network
2017-07-10 17:19:29 +08:00
$ 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
> ```