hyperledger-archives / fabric

THIS IS A READ-ONLY historic repository. Current development is at https://gerrit.hyperledger.org/r/#/admin/projects/fabric . pull requests not accepted

Home Page:https://gerrit.hyperledger.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Need a script to setup fabric cluster

xiejunan opened this issue · comments

I am writing a script to setup a fabric cluster automatically, including following works:

  1. setup a node to compile peer&base image, following steps need to be done:
    . install/verify docker
    . install/verify go
    . install/verify rocksdb
    . clone fabric
    . make base image & export base image as tar file
    . make peer & peer image
    . construct a install dir to contain all related output: bin of peer, core.yaml, config of consensus , exported image files etc
  2. setup some nodes to install fabric, following steps need to be done:
    . install/verify docker
    . install/verify rocksdb
    . scp fabric install files from the compile node, import images
    . modify core.yaml according node role(root node or not )
    . if peer will run in docker , setup overlay network like flannel etc
    . start peer/membersrvc via init

@xiejunan we've transitioned to using Gerrit and Jira for development of the various Hyperledger projects.

That said, there is a vagrant environment that does all of that under the devenv directory. As for just deploying (eg. without needing a build) you can deploy the docker images we publish to DockerHub.