Preparing the network

To build Fabric and Fabric-CA, you may need to install certain dependencies if they are missing. These include the gcc, libtool, and ltdl libraries. (On a Ubuntu Xenial system, all of the necessary prerequisites can be installed by running sudo apt-get install libltdl-dev. It is left to the reader to look for equivalents on other systems). We need to perform the following steps before generating network cryptographic material.


The tutorial application was developed on Hyperledger Fabric version 1.1, so you will need to fetch and build components for that version.
  1. Clone the Fabric (https://github.com/hyperledger/fabric/tree/release-1.1) source code repository. If you are using the git clone command, add the parameter -b release-1.1. Make sure the cloned fabric folder is either present, or symbolically linked, in $GOPATH/src/github.com/hyperledger/. When you attempt to build Fabric, it will look for libraries in this path.

 

  1. Run make docker to build Docker images for the peers and orderers
  2. Run make configtxgen cryptogen to generate the necessary tools to run the network creation commands described in this section
  3. Clone the Fabric-CA (https://github.com/hyperledger/fabric-ca/tree/release-1.1) source code repository. (If you are using the git clone command, add the parameter -b release-1.1. Make sure the cloned fabric-ca folder is either present, or symbolically linked, in $GOPATH/src/github.com/hyperledger/. When you attempt to build Fabric-CA, it will look for libraries in this path.
  4. Run make docker to build the Docker images for the MSPs
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.119.124.49