harbor/make/checkenv.sh
Daniel Jiang b9154a858b Extract shared func for checkenv and install scripts
This commit fixes #8622 by extract shared func into common.sh to avoid
inconsistency in future.

Signed-off-by: Daniel Jiang <jiangd@vmware.com>
2019-10-10 15:07:09 +08:00

26 lines
457 B
Bash
Executable File

#!/bin/bash
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
check_golang
check_docker
check_dockercompose