Skip to content
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 27 lines (22 sloc) 840 Bytes
#!/bin/bash
root_folder=$(cd $(dirname $0); cd ..; pwd)
exec 3>&1
function _out() {
echo "$(date +'%F %H:%M:%S') $@"
}
function checkPrerequisites() {
MISSING_TOOLS=""
git --version &> /dev/null || MISSING_TOOLS="${MISSING_TOOLS} git"
curl --version &> /dev/null || MISSING_TOOLS="${MISSING_TOOLS} curl"
which sed &> /dev/null || MISSING_TOOLS="${MISSING_TOOLS} sed"
docker -v &> /dev/null || MISSING_TOOLS="${MISSING_TOOLS} docker"
kubectl version &> /dev/null || MISSING_TOOLS="${MISSING_TOOLS} kubectl"
minikube version || MISSING_TOOLS="${MISSING_TOOLS} minikube"
if [[ -n "$MISSING_TOOLS" ]]; then
_out "Some tools (${MISSING_TOOLS# }) could not be found, please install them first"
exit 1
else
_out You have all necessary prerequisites installed
fi
}
checkPrerequisites
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.