docker-compose-files/hyperledger_fabric/v2.3.3/scripts/start_eventsclient.sh

24 lines
568 B
Bash
Raw Permalink Normal View History

2021-09-10 12:54:54 +08:00
#!/usr/bin/env bash
# This script will start the eventsclient
# Importing useful functions
if [ -f ./func.sh ]; then
source ./func.sh
elif [ -f scripts/func.sh ]; then
source scripts/func.sh
fi
echo_g "=== Testing eventsclient in a loop ==="
CORE_PEER_LOCALMSPID=${ORG1MSP} \
CORE_PEER_MSPCONFIGPATH=${ORG1_ADMIN_MSP} \
eventsclient \
-server=${ORG1_PEER0_URL} \
-channelID=${APP_CHANNEL} \
-filtered=true \
-tls=true \
-clientKey=${ORG1_ADMIN_TLS_CLIENT_KEY} \
-clientCert=${ORG1_ADMIN_TLS_CLIENT_CERT} \
-rootCert=${ORG1_ADMIN_TLS_CA_CERT}