Possible update to nano-bash network for external builders

Signed-off-by: Matthew B White <whitemat@uk.ibm.com>
This commit is contained in:
Matthew B White 2021-10-21 16:50:15 +01:00
parent 5355fb1b39
commit a3d1cd01c7
4 changed files with 31 additions and 1 deletions

View file

@ -11,6 +11,13 @@ fi
export PATH="${PWD}"/../../fabric/build/bin:"${PWD}"/../bin:"$PATH" export PATH="${PWD}"/../../fabric/build/bin:"${PWD}"/../bin:"$PATH"
export FABRIC_CFG_PATH="${PWD}"/../config export FABRIC_CFG_PATH="${PWD}"/../config
# if the fabric build directory exists with external builders in it.. use that
if [ -d ${PWD}/../../fabric/build/bin/ext_ccs_builder/ ]; then
export CORE_CHAINCODE_EXTERNALBUILDERS: "[{name: ext_ccs_builder, path: ${PWD}/../../fabric/build/bin/ext_ccs_builder/}]"
else
export CORE_CHAINCODE_EXTERNALBUILDERS: "[{name: ext_ccs_builder, path: ${PWD}/../bin/ext_ccs_builder/}]"
fi
export FABRIC_LOGGING_SPEC=debug:cauthdsl,policies,msp,grpc,peer.gossip.mcs,gossip,leveldbhelper=info export FABRIC_LOGGING_SPEC=debug:cauthdsl,policies,msp,grpc,peer.gossip.mcs,gossip,leveldbhelper=info
export CORE_PEER_TLS_ENABLED=true export CORE_PEER_TLS_ENABLED=true
export CORE_PEER_TLS_CERT_FILE="${PWD}"/crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.crt export CORE_PEER_TLS_CERT_FILE="${PWD}"/crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.crt

View file

@ -10,7 +10,12 @@ fi
# look for binaries in local dev environment /build/bin directory and then in local samples /bin directory # look for binaries in local dev environment /build/bin directory and then in local samples /bin directory
export PATH="${PWD}"/../../fabric/build/bin:"${PWD}"/../bin:"$PATH" export PATH="${PWD}"/../../fabric/build/bin:"${PWD}"/../bin:"$PATH"
export FABRIC_CFG_PATH="${PWD}"/../config export FABRIC_CFG_PATH="${PWD}"/../config
# if the fabric build directory exists with external builders in it.. use that
if [ -d ${PWD}/../../fabric/build/bin/ext_ccs_builder/ ]; then
export CORE_CHAINCODE_EXTERNALBUILDERS: "[{name: ext_ccs_builder, path: ${PWD}/../../fabric/build/bin/ext_ccs_builder/}]"
else
export CORE_CHAINCODE_EXTERNALBUILDERS: "[{name: ext_ccs_builder, path: ${PWD}/../bin/ext_ccs_builder/}]"
fi
export FABRIC_LOGGING_SPEC=debug:cauthdsl,policies,msp,grpc,peer.gossip.mcs,gossip,leveldbhelper=info export FABRIC_LOGGING_SPEC=debug:cauthdsl,policies,msp,grpc,peer.gossip.mcs,gossip,leveldbhelper=info
export CORE_PEER_TLS_ENABLED=true export CORE_PEER_TLS_ENABLED=true
export CORE_PEER_TLS_CERT_FILE="${PWD}"/crypto-config/peerOrganizations/org1.example.com/peers/peer1.org1.example.com/tls/server.crt export CORE_PEER_TLS_CERT_FILE="${PWD}"/crypto-config/peerOrganizations/org1.example.com/peers/peer1.org1.example.com/tls/server.crt

View file

@ -11,6 +11,15 @@ fi
export PATH="${PWD}"/../../fabric/build/bin:"${PWD}"/../bin:"$PATH" export PATH="${PWD}"/../../fabric/build/bin:"${PWD}"/../bin:"$PATH"
export FABRIC_CFG_PATH="${PWD}"/../config export FABRIC_CFG_PATH="${PWD}"/../config
# if the fabric build directory exists with external builders in it.. use that
if [ -d ${PWD}/../../fabric/build/bin/ext_ccs_builder/ ]; then
export CORE_CHAINCODE_EXTERNALBUILDERS: "[{name: ext_ccs_builder, path: ${PWD}/../../fabric/build/bin/ext_ccs_builder/}]"
else
export CORE_CHAINCODE_EXTERNALBUILDERS: "[{name: ext_ccs_builder, path: ${PWD}/../bin/ext_ccs_builder/}]"
fi
export FABRIC_LOGGING_SPEC=debug:cauthdsl,policies,msp,grpc,peer.gossip.mcs,gossip,leveldbhelper=info export FABRIC_LOGGING_SPEC=debug:cauthdsl,policies,msp,grpc,peer.gossip.mcs,gossip,leveldbhelper=info
export CORE_PEER_TLS_ENABLED=true export CORE_PEER_TLS_ENABLED=true
export CORE_PEER_TLS_CERT_FILE="${PWD}"/crypto-config/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/server.crt export CORE_PEER_TLS_CERT_FILE="${PWD}"/crypto-config/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/server.crt

View file

@ -11,6 +11,15 @@ fi
export PATH="${PWD}"/../../fabric/build/bin:"${PWD}"/../bin:"$PATH" export PATH="${PWD}"/../../fabric/build/bin:"${PWD}"/../bin:"$PATH"
export FABRIC_CFG_PATH="${PWD}"/../config export FABRIC_CFG_PATH="${PWD}"/../config
# if the fabric build directory exists with external builders in it.. use that
if [ -d ${PWD}/../../fabric/build/bin/ext_ccs_builder/ ]; then
export CORE_CHAINCODE_EXTERNALBUILDERS: "[{name: ext_ccs_builder, path: ${PWD}/../../fabric/build/bin/ext_ccs_builder/}]"
else
export CORE_CHAINCODE_EXTERNALBUILDERS: "[{name: ext_ccs_builder, path: ${PWD}/../bin/ext_ccs_builder/}]"
fi
export FABRIC_LOGGING_SPEC=debug:cauthdsl,policies,msp,grpc,peer.gossip.mcs,gossip,leveldbhelper=info export FABRIC_LOGGING_SPEC=debug:cauthdsl,policies,msp,grpc,peer.gossip.mcs,gossip,leveldbhelper=info
export CORE_PEER_TLS_ENABLED=true export CORE_PEER_TLS_ENABLED=true
export CORE_PEER_TLS_CERT_FILE="${PWD}"/crypto-config/peerOrganizations/org2.example.com/peers/peer1.org2.example.com/tls/server.crt export CORE_PEER_TLS_CERT_FILE="${PWD}"/crypto-config/peerOrganizations/org2.example.com/peers/peer1.org2.example.com/tls/server.crt