mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-18 16:05:10 +00:00
Signed-off-by: Vinay <vinayaggarwal@softwaysolutions.com> Co-authored-by: Vinay <vinayaggarwal@softwaysolutions.com>
34 lines
No EOL
805 B
Bash
Executable file
34 lines
No EOL
805 B
Bash
Executable file
#!/bin/bash
|
|
#
|
|
# Copyright IBM Corp All Rights Reserved
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
# Double check that kind, kubectl, docker, and all required images are present.
|
|
function check_prereqs() {
|
|
|
|
docker version > /dev/null
|
|
if [[ $? -ne 0 ]]; then
|
|
echo "No 'docker' binary available? (https://www.docker.com)"
|
|
exit 1
|
|
fi
|
|
|
|
kind version > /dev/null
|
|
if [[ $? -ne 0 ]]; then
|
|
echo "No 'kind' binary available? (https://kind.sigs.k8s.io/docs/user/quick-start/#installation)"
|
|
exit 1
|
|
fi
|
|
|
|
kubectl > /dev/null
|
|
if [[ $? -ne 0 ]]; then
|
|
echo "No 'kubectl' binary available? (https://kubernetes.io/docs/tasks/tools/)"
|
|
exit 1
|
|
fi
|
|
|
|
jq --version > /dev/null
|
|
if [[ $? -ne 0 ]]; then
|
|
echo "No 'jq' binary available? (https://stedolan.github.io/jq/)"
|
|
exit 1
|
|
fi
|
|
} |