mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-17 15:35:09 +00:00
* Import Full Stack Asset Transfer Guide at commit fb554befdbbeff9e69159b54fce0b811603f29c7 Signed-off-by: Josh Kneubuhl <jkneubuh@us.ibm.com> * Update the workshop with a new WORKSHOP_PATH under fabric-samples Signed-off-by: Josh Kneubuhl <jkneubuh@us.ibm.com> * Update the workshop with a new WORKSHOP_PATH under fabric-samples Signed-off-by: Josh Kneubuhl <jkneubuh@us.ibm.com> * missed a .git ignored directory on add Signed-off-by: Josh Kneubuhl <jkneubuh@us.ibm.com> * Updates to run the workshop on the Apple M1 Signed-off-by: Josh Kneubuhl <jkneubuh@us.ibm.com> * Workaround for https://github.com/eslint/eslint/issues/15299 in the contract tslinter Signed-off-by: Josh Kneubuhl <jkneubuh@us.ibm.com> * Build an arch-specific CC images on M1 Signed-off-by: Josh Kneubuhl <jkneubuh@us.ibm.com> * empty commit - force a build Signed-off-by: Josh Kneubuhl <jkneubuh@us.ibm.com> * revert an accidental commit that was building the top-level asset-transfer as arm64 Signed-off-by: Josh Kneubuhl <jkneubuh@us.ibm.com> Signed-off-by: Josh Kneubuhl <jkneubuh@us.ibm.com>
30 lines
704 B
Bash
Executable file
30 lines
704 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -eou pipefail
|
|
|
|
# All checks run in the workshop root folder
|
|
cd "$(dirname "$0")"/..
|
|
|
|
. checks/utils.sh
|
|
|
|
EXIT=0
|
|
|
|
function chaincode_ready() {
|
|
peer chaincode query -n asset-transfer -C mychannel -c '{"Args":["org.hyperledger.fabric:GetMetadata"]}'
|
|
}
|
|
|
|
must_declare WORKSHOP_CRYPTO
|
|
|
|
must_declare CORE_PEER_LOCALMSPID
|
|
must_declare CORE_PEER_ADDRESS
|
|
must_declare CORE_PEER_TLS_ENABLED
|
|
must_declare CORE_PEER_MSPCONFIGPATH
|
|
must_declare CORE_PEER_TLS_ROOTCERT_FILE
|
|
must_declare CORE_PEER_CLIENT_CONNTIMEOUT
|
|
must_declare CORE_PEER_DELIVERYCLIENT_CONNTIMEOUT
|
|
must_declare ORDERER_ENDPOINT
|
|
must_declare ORDERER_TLS_CERT
|
|
|
|
check chaincode_ready "asset-transfer chaincode is running"
|
|
|
|
exit $EXIT
|