docker-compose-files/hyperledger_fabric
Baohua Yang 49868aa5ad Finish v1.3.0 testing 2018-10-11 13:55:49 +08:00
..
docs Fix docs and scripts 2017-12-07 13:55:24 +08:00
fabric-ca Use fabric ca to bootstrap fabric 1.2 2018-09-21 12:20:57 +00:00
latest Add v1.3.0 2018-10-11 13:53:01 +08:00
v0.6.0 Add fabric 1.0.5 2017-12-07 10:54:06 +08:00
v1.0.0 Add fabric 1.0.5 2017-12-07 10:54:06 +08:00
v1.0.2 Fix channel tx file name 2018-06-07 14:36:58 +08:00
v1.0.5 Minor fix 2018-06-07 14:34:24 +08:00
v1.0.6 Minor fix 2018-06-07 14:34:24 +08:00
v1.1.0 Verify with latest code 2018-09-29 17:44:36 +08:00
v1.2.0 Add v1.3.0 2018-10-11 13:53:01 +08:00
v1.3.0 Finish v1.3.0 testing 2018-10-11 13:55:49 +08:00
README.md Add v1.3.0 2018-10-11 13:53:01 +08:00

README.md

Hyperledger Fabric Playground

This project provides several useful Docker-Compose script to help quickly bootup a Hyperledger Fabric network, and do simple testing with deploy, invoke and query transactions.

Currently we support Hyperledger Fabric all releases from v0.6 to latest v1.x.

If you're not familiar with Docker and Blockchain, can have a look at these books (in CN):

Supported Fabric Releases

Fabric Release Description
Fabric Latest latest fabric code, unstable.
Fabric v1.3.0 stable fabric 1.3.0 release.
Fabric v1.2.0 stable fabric 1.2.0 release.
Fabric v1.1.0 stable fabric 1.1.0 release.
Fabric v1.0.6 fabric v1.0.6 release.
Fabric v1.0.5 fabric v1.0.5 release.
Fabric v1.0.2 fabric v1.0.2 release.
Fabric v1.0.0 fabric v1.0.0 release.
Fabric v0.6.0 fabric v0.6.0 release (too old, not recommend to use).

Getting Started

TLDR

RELEASE=v1.3.0

$ cd ${RELEASE}; make setup test

More details are releaved below.

Pick up a fabric version

Enter the subdir of specific version and setup, e.g.,

$ cd ${RELEASE} # select a fabric version
$ make setup download # Install docker/compose, and pull required images

Quick Test

The following command will run the entire process (start a fabric network, create channel, test chaincode and stop it.) pass-through.

$ make test  # Test with default fabric solo mode

Test with more modes

$ HLF_MODE=solo make test # Bootup a fabric network with solo mode
$ HLF_MODE=couchdb make test # Enable couchdb support, web UI is at `http://localhost:5984/_utils`
$ HLF_MODE=event make test  # Enable eventhub listener
$ HLF_MODE=kafka make test # Bootup a fabric network with kafka mode
$ HLF_MODE=be make test  # Start a blockchain-explorer to view network info

Detailed Steps

See detailed steps

Acknowledgement