4 SCRIPTDIR="$(readlink -f $(dirname ${BASH_SOURCE[0]}))"
5 LIBDIR="$(dirname $(dirname $(dirname ${SCRIPTDIR})))/env/lib"
7 source $LIBDIR/common.sh
8 source $SCRIPTDIR/../common.sh
10 BUILDDIR=${SCRIPTDIR/deploy/build}
13 SITE_REPO=${SITE_REPO:-"https://gerrit.akraino.org/r/icn"}
14 SITE_BRANCH=${SITE_BRANCH:-"master"}
15 SITE_PATH=${SITE_PATH:-"deploy/site/pod11/deployment"}
18 "clean") site_clean ;;
20 # TODO Replace ICN test key, $FLUX_SOPS_PRIVATE_KEY, with real key
22 "wait") site_wait_for_all_ready ;;
23 "wait-clean") site_wait_for_all_deleted ;;
25 Usage: $(basename $0) COMMAND
28 clean - Remove the site
29 deploy - Deploy the site
30 wait - Wait for the site to be ready
31 wait-clean - Wait for the site to be removed