blob: 0099d013b1d51a35527a137c60dc121baf68bfef [file] [log] [blame]
#!/bin/bash
if (return 0 2>/dev/null); then
echo "Do not source, instead run ${BASH_SOURCE[0]}" >&2
else
set -x
export INSTANCE_MODE="release"
export HOST_NAME="giggi.me"
export INSTANCE_DIR="/home/luigi/$HOST_NAME"
export PASSWD_F="/home/luigi/tod/PASSWD"
export MANIFEST_F="MANIFEST.giggi.me"
set +x
case "$1" in
cli-compose ) shift
pushd $INSTANCE_DIR >/dev/null
./compose-cli.sh ${@}
popd >/dev/null
;;
cli-dc ) shift
pushd $INSTANCE_DIR >/dev/null
source $PASSWD_F
sudo -E docker-compose ${@}
popd >/dev/null
;;
tod ) shift
./tod ${@}
;;
cli-gerrit ) shift
$INSTANCE_DIR/docker/gerrit/gerrit-cli.sh ${@}
;;
cli-mysql ) shift
$INSTANCE_DIR/docker/mysql/mysql-cli.sh ${@}
;;
esac
fi