Multihost Hyperledger Fabric Network
This is a multihost Hyperledger Fabric setup that can be used to setup across various VMs.
-
Edit template files for Org1 and Org2
- Edit the IP address only of the machines of the peers in 'extra_hosts'
-
Run command to generate certificates
./network.sh generate
-
Copy the files to the second VM
scp -r ../test-network-multihost <username@second-vm-ip>
-
Bring up Orderer and Org1 (Peers, CouchDBs and CliOrg1)
./network.sh up -org1
-
Bring up Org2 (Peers, CouchDBs and CliOrg2) in Second VM
./network.sh up -org2
-
Connect to CliOrg1 and run the script
docker exec -it cliOrg1 bash
./scripts/script.sh
-
DONE !
Extras
-
Stop containers
./network.sh stop
-
Start containers
./network.sh start