harbor/make/checkenv.sh

26 lines
457 B
Bash
Raw Permalink Normal View History

#!/bin/bash
2016-10-19 08:32:00 +02:00
set -o noglob
set -e
usage=$'Checking environment for harbor build and install. Include golang, docker and docker-compose.'
while [ $# -gt 0 ]; do
case $1 in
--help)
note "$usage"
exit 0;;
*)
note "$usage"
exit 1;;
esac
shift || true
done
DIR="$(cd "$(dirname "$0")" && pwd)"
source $DIR/common.sh
2016-10-19 08:32:00 +02:00
check_golang
check_docker
check_dockercompose