Syn the usage of kafka from latest e2e_cli
parent
35be936bdf
commit
5cafc938a1
|
@ -3,13 +3,22 @@
|
||||||
## Start a network base on kafka
|
## Start a network base on kafka
|
||||||
|
|
||||||
```bash
|
```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
|
```bash
|
||||||
$ docker exec -it fabric-cli bash
|
$ docker exec -it fabric-cli bash
|
||||||
$ bash ./scripts/initialize.sh
|
$ bash ./scripts/initialize.sh # initialize the fabric network
|
||||||
$ bash ./scripts/test_4peers.sh
|
$ 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
|
||||||
|
> ```
|
||||||
|
|
Loading…
Reference in New Issue