github.com/muhammedhassanm/blockchain@v0.0.0-20200120143007-697261defd4d/build-blockchain-insurance-app-master/cli/script.sh (about) 1 #!/bin/bash 2 set -e 3 4 CORE_PEER_MSPCONFIGPATH=/peers/ordererOrganizations/orderer-org/orderers/orderer0/msp CORE_PEER_LOCALMSPID="OrdererMSP" peer channel create -o orderer0:7050 -c default -f /peers/orderer/channel.tx --tls true --cafile /peers/orderer/localMspConfig/cacerts/ordererOrg.pem 5 6 CORE_PEER_MSPCONFIGPATH=/peers/insurancePeer/localMspConfig CORE_PEER_ADDRESS=insurance-peer:7051 CORE_PEER_LOCALMSPID=InsuranceOrgMSP CORE_PEER_TLS_ROOTCERT_FILE=/peers/insurancePeer/localMspConfig/cacerts/insuranceOrg.pem peer channel join -b default.block 7 8 CORE_PEER_MSPCONFIGPATH=/peers/shopPeer/localMspConfig CORE_PEER_ADDRESS=shop-peer:7051 CORE_PEER_LOCALMSPID=ShopOrgMSP CORE_PEER_TLS_ROOTCERT_FILE=/peers/shopPeer/localMspConfig/cacerts/shopOrg.pem peer channel join -b default.block 9 10 CORE_PEER_MSPCONFIGPATH=/peers/repairShopPeer/localMspConfig CORE_PEER_ADDRESS=repairservice-peer:7051 CORE_PEER_LOCALMSPID=RepairShopOrgMSP CORE_PEER_TLS_ROOTCERT_FILE=/peers/repairShopPeer/localMspConfig/cacerts/repairShopOrg.pem peer channel join -b default.block 11 12 ## Don't use TLS 13 # CORE_PEER_MSPCONFIGPATH=/peers/orderer/localMspConfig CORE_PEER_LOCALMSPID="OrdererMSP" peer channel create -o orderer0:7050 -c default -f /peers/orderer/channel.tx 14 # 15 # CORE_PEER_MSPCONFIGPATH=/peers/insurancePeer/localMspConfig CORE_PEER_ADDRESS=insurance-peer:7051 CORE_PEER_LOCALMSPID=InsuranceOrgMSP peer channel join -b default.block 16 # 17 # CORE_PEER_MSPCONFIGPATH=/peers/shopPeer/localMspConfig CORE_PEER_ADDRESS=shop-peer:7051 CORE_PEER_LOCALMSPID=ShopOrgMSP peer channel join -b default.block 18 # 19 # CORE_PEER_MSPCONFIGPATH=/peers/repairShopPeer/localMspConfig CORE_PEER_ADDRESS=repairservice-peer:7051 CORE_PEER_LOCALMSPID=RepairShopOrgMSP peer channel join -b default.block