Skip to content

Two host fabric network based on fabric-samples

Notifications You must be signed in to change notification settings

BCDevs/hlf-two-host

Repository files navigation

This Repository utilizes fabric-samples/basic-network

Steps

  1. export fabric-samples bin directory to path
export PATH= ~/fabric-samples/bin:$PATH
  1. Run $ ./generate.sh to generate crypto-matirials and genesis block

  2. Modifying ca Container keyfile and peer2 IP address in docker-compose.yml

   - FABRIC_CA_SERVER_CA_KEYFILE=/etc/hyperledger/fabric-ca-server-config/<New KeyFile>  #can be found in crypto-config/peerOrganizations/org1.example.com/ca/ directory
 
   extra_hosts:
   - "peer1.org1.example.com:<Second machine IP address>"
  1. Start Network with ./start.sh

  2. Copy crypto-config directory to second machine's project host2/sub-directory

  3. Modify docker-compose-peer2.yml file extra-hosts section with first host IP Address

  4. Start network(peer2) with ./start-peer2.sh

About

Two host fabric network based on fabric-samples

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages