mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-26 03:25:09 +00:00
envVar.sh
This commit is contained in:
parent
3b99448f83
commit
1986aa44bf
1 changed files with 45 additions and 1 deletions
|
|
@ -15,6 +15,15 @@ export ORDERER_CA=${PWD}/organizations/ordererOrganizations/example.com/orderers
|
||||||
export PEER0_ORG1_CA=${PWD}/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt
|
export PEER0_ORG1_CA=${PWD}/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt
|
||||||
export PEER0_ORG2_CA=${PWD}/organizations/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt
|
export PEER0_ORG2_CA=${PWD}/organizations/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt
|
||||||
export PEER0_ORG3_CA=${PWD}/organizations/peerOrganizations/org3.example.com/peers/peer0.org3.example.com/tls/ca.crt
|
export PEER0_ORG3_CA=${PWD}/organizations/peerOrganizations/org3.example.com/peers/peer0.org3.example.com/tls/ca.crt
|
||||||
|
#
|
||||||
|
# 4 5 6
|
||||||
|
#
|
||||||
|
export PEER0_ORG4_CA=${PWD}/organizations/peerOrganizations/org4.example.com/peers/peer0.org4.example.com/tls/ca.crt
|
||||||
|
export PEER0_ORG5_CA=${PWD}/organizations/peerOrganizations/org5.example.com/peers/peer0.org5.example.com/tls/ca.crt
|
||||||
|
export PEER0_ORG6_CA=${PWD}/organizations/peerOrganizations/org6.example.com/peers/peer0.org6.example.com/tls/ca.crt
|
||||||
|
#
|
||||||
|
#
|
||||||
|
#
|
||||||
export ORDERER_ADMIN_TLS_SIGN_CERT=${PWD}/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/tls/server.crt
|
export ORDERER_ADMIN_TLS_SIGN_CERT=${PWD}/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/tls/server.crt
|
||||||
export ORDERER_ADMIN_TLS_PRIVATE_KEY=${PWD}/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/tls/server.key
|
export ORDERER_ADMIN_TLS_PRIVATE_KEY=${PWD}/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/tls/server.key
|
||||||
|
|
||||||
|
|
@ -45,6 +54,29 @@ setGlobals() {
|
||||||
export CORE_PEER_MSPCONFIGPATH=${PWD}/organizations/peerOrganizations/org3.example.com/users/Admin@org3.example.com/msp
|
export CORE_PEER_MSPCONFIGPATH=${PWD}/organizations/peerOrganizations/org3.example.com/users/Admin@org3.example.com/msp
|
||||||
export CORE_PEER_ADDRESS=localhost:11051
|
export CORE_PEER_ADDRESS=localhost:11051
|
||||||
|
|
||||||
|
#
|
||||||
|
# 4 5 6
|
||||||
|
#
|
||||||
|
elif [ $USING_ORG -eq 4 ]; then
|
||||||
|
export CORE_PEER_LOCALMSPID="Org4MSP"
|
||||||
|
export CORE_PEER_TLS_ROOTCERT_FILE=$PEER0_ORG4_CA
|
||||||
|
export CORE_PEER_MSPCONFIGPATH=${PWD}/organizations/peerOrganizations/org4.example.com/users/Admin@org4.example.com/msp
|
||||||
|
export CORE_PEER_ADDRESS=localhost:13051
|
||||||
|
|
||||||
|
elif [ $USING_ORG -eq 5 ]; then
|
||||||
|
export CORE_PEER_LOCALMSPID="Org5MSP"
|
||||||
|
export CORE_PEER_TLS_ROOTCERT_FILE=$PEER0_ORG5_CA
|
||||||
|
export CORE_PEER_MSPCONFIGPATH=${PWD}/organizations/peerOrganizations/org5.example.com/users/Admin@org5.example.com/msp
|
||||||
|
export CORE_PEER_ADDRESS=localhost:15051
|
||||||
|
|
||||||
|
elif [ $USING_ORG -eq 6 ]; then
|
||||||
|
export CORE_PEER_LOCALMSPID="Org6MSP"
|
||||||
|
export CORE_PEER_TLS_ROOTCERT_FILE=$PEER0_ORG6_CA
|
||||||
|
export CORE_PEER_MSPCONFIGPATH=${PWD}/organizations/peerOrganizations/org6.example.com/users/Admin@org6.example.com/msp
|
||||||
|
export CORE_PEER_ADDRESS=localhost:17051
|
||||||
|
#
|
||||||
|
#
|
||||||
|
#
|
||||||
else
|
else
|
||||||
errorln "ORG Unknown"
|
errorln "ORG Unknown"
|
||||||
fi
|
fi
|
||||||
|
|
@ -70,6 +102,18 @@ setGlobalsCLI() {
|
||||||
export CORE_PEER_ADDRESS=peer0.org2.example.com:9051
|
export CORE_PEER_ADDRESS=peer0.org2.example.com:9051
|
||||||
elif [ $USING_ORG -eq 3 ]; then
|
elif [ $USING_ORG -eq 3 ]; then
|
||||||
export CORE_PEER_ADDRESS=peer0.org3.example.com:11051
|
export CORE_PEER_ADDRESS=peer0.org3.example.com:11051
|
||||||
|
#
|
||||||
|
# 4 5 6
|
||||||
|
#
|
||||||
|
elif [ $USING_ORG -eq 4 ]; then
|
||||||
|
export CORE_PEER_ADDRESS=peer0.org4.example.com:13051
|
||||||
|
elif [ $USING_ORG -eq 5 ]; then
|
||||||
|
export CORE_PEER_ADDRESS=peer0.org5.example.com:15051
|
||||||
|
elif [ $USING_ORG -eq 6 ]; then
|
||||||
|
export CORE_PEER_ADDRESS=peer0.org6.example.com:17051
|
||||||
|
#
|
||||||
|
#
|
||||||
|
#
|
||||||
else
|
else
|
||||||
errorln "ORG Unknown"
|
errorln "ORG Unknown"
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue