docker-compose-files/hyperledger/README.md

1.1 KiB

Hyperledger fabric

You can use the following script to install docker and start PBFT cluster in one instruction.

$ bash setupPbft.sh

If you want to start it manually, follow the steps:

First, pull an openblockchain/baseimage:latest first.

$ docker pull yeasy/hyperledger:latest && docker tag yeasy/hyperledger:latest hyperledger/fabric-baseimage:latest
$ docker pull yeasy/hyperledger-peer:latest
$ docker pull yeasy/hyperledger-membersrvc:latest

Then go into the specific consensus directory, then you can start a 4 nodes hyperledger cluster.

E.g., for pbft consensus, use

$ cd pbft; docker-compose up

After the cluster is synced, you can validate by deploying, invoking or querying chaincode from the container or from the host.

See hyperledger-peer if you've not familiar on that.

This refers the example from the hyperledger project.

noops

Use the noops as consensus, i.e., no consensus.

pbft

Use pbft as consensus.