mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-17 15:35:09 +00:00
The scripts do not require bash so switch to sh and add shellcheck linting Signed-off-by: James Taylor <jamest@uk.ibm.com>
15 lines
722 B
Bash
Executable file
15 lines
722 B
Bash
Executable file
#!/usr/bin/env sh
|
|
|
|
# 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 FABRIC_CFG_PATH="${PWD}"/../config
|
|
|
|
export FABRIC_LOGGING_SPEC=INFO
|
|
export CORE_PEER_TLS_ENABLED=true
|
|
export CORE_PEER_TLS_ROOTCERT_FILE="${PWD}"/crypto-config/peerOrganizations/org2.example.com/peers/peer1.org2.example.com/tls/ca.crt
|
|
export CORE_PEER_ADDRESS=127.0.0.1:7057
|
|
export CORE_PEER_LOCALMSPID=Org2MSP
|
|
export CORE_PEER_MSPCONFIGPATH="${PWD}"/crypto-config/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp
|
|
|
|
# join peer to channel
|
|
peer channel join -b "${PWD}"/channel-artifacts/mychannel.block
|