mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-19 16:15: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>
40 lines
971 B
Bash
Executable file
40 lines
971 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -eo pipefail
|
|
|
|
# All checks run in the workshop root folder
|
|
cd "$(dirname "$0")"/..
|
|
|
|
. checks/utils.sh
|
|
|
|
EXIT=0
|
|
|
|
|
|
function cluster_info() {
|
|
kubectl cluster-info &>/dev/null
|
|
}
|
|
|
|
function nginx() {
|
|
kubectl -n ingress-nginx get all &>/dev/null
|
|
kubectl -n ingress-nginx get deployment.apps/ingress-nginx-controller &>/dev/null
|
|
curl http://${WORKSHOP_INGRESS_DOMAIN} &>/dev/null
|
|
curl --insecure https://${WORKSHOP_INGRESS_DOMAIN}:443 &>/dev/null
|
|
}
|
|
|
|
function container_registry() {
|
|
curl --fail http://${WORKSHOP_INGRESS_DOMAIN}:5000/v2/_catalog &>/dev/null
|
|
}
|
|
|
|
|
|
must_declare WORKSHOP_INGRESS_DOMAIN
|
|
must_declare WORKSHOP_NAMESPACE
|
|
|
|
check cluster_info "k8s API controller is running"
|
|
check nginx "Nginx ingress is running at https://${WORKSHOP_INGRESS_DOMAIN}"
|
|
|
|
if [ x"${WORKSHOP_CLUSTER_RUNTIME}" == x"kind" ]; then
|
|
check container_registry "Container registry is running at ${WORKSHOP_INGRESS_DOMAIN}:5000"
|
|
fi
|
|
|
|
exit $EXIT
|
|
|