Skip to content

Bring up a blockchain network for Hyperledger Fabric using golang docker client.

License

Notifications You must be signed in to change notification settings

giou-k/hyperledger-fabric-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hyperledger Fabric App

Bring up a blockchain network for Hyperledger Fabric using docker client.

The network that is currently implemented is inspired by fabric-samples/first-nework build.

It includes:

  • 5 orderer nodes.
  • 4 peer nodes.
  • 2 orgs for peers and 1 org for orderers.
  • Raft consensus algorithm.
  • TLS connection for orderers.

Install

git clone https://github.com/giou-k/hyperledger-fabric-docker.git

Usage

Compile and Run.

cd hyperledger-fabric-docker

go build cmd/main.go

go run cmd/main

Check network.

docker ps -a

docker logs <container name>

Kill network and Clear project dirs.

./scripts/clear.sh

and run manualy from terminal

sudo rm -rf pkg/config/peer* pkg/config/orderer*

We need sudo because the files are created inside the containers with root.

Contributing

PRs accepted.

License

MIT © giou-k

About

Bring up a blockchain network for Hyperledger Fabric using golang docker client.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published