X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/ae3bb0033a24a38489c49ffc26e5a5e8fd93c160..86087cc5ea76bd498d9f615fc314c14c08e721b9:/docker/arvdock diff --git a/docker/arvdock b/docker/arvdock index 2fca7fb553..43a384ea49 100755 --- a/docker/arvdock +++ b/docker/arvdock @@ -34,6 +34,7 @@ function usage { echo >&2 " -k, --keep Keep servers" echo >&2 " -p, --keepproxy Keepproxy server" echo >&2 " -h, --help Display this help and exit" + echo >&2 " --domain=dns.domain DNS domain used by containers (default dev.arvados)" echo >&2 echo >&2 " If no options are given, the action is applied to all servers." echo >&2 @@ -133,7 +134,7 @@ function do_start { # NOTE: This requires GNU getopt (part of the util-linux package on Debian-based distros). local TEMP=`getopt -o d::s::b:a::cw::nkpvh \ - --long doc::,sso::,api::,bridge:,compute,workbench::,nameserver,keep,keepproxy,vm,help \ + --long doc::,sso::,api::,bridge:,compute,workbench::,nameserver,keep,keepproxy,vm,help,domain:: \ -n "$0" -- "$@"` if [ $? != 0 ] ; then echo "Use -h for help"; exit 1 ; fi @@ -193,6 +194,11 @@ function do_start { start_keepproxy=true shift ;; + --domain) + case "$2" in + *) ARVADOS_DOMAIN="$2"; shift 2 ;; + esac + ;; --) shift break @@ -388,7 +394,7 @@ function do_stop { # NOTE: This requires GNU getopt (part of the util-linux package on Debian-based distros). local TEMP=`getopt -o dsacwnkpvh \ - --long doc,sso,api,compute,workbench,nameserver,keep,keepproxy,vm,help \ + --long doc,sso,api,compute,workbench,nameserver,keep,keepproxy,vm,help,domain:: \ -n "$0" -- "$@"` if [ $? != 0 ] ; then echo "Use -h for help"; exit 1 ; fi @@ -417,6 +423,11 @@ function do_stop { stop_keep="keep_server_0 keep_server_1" ; shift ;; -p | --keepproxy ) stop_keep="keepproxy_server" ; shift ;; + --domain) + case "$2" in + *) ARVADOS_DOMAIN="$2"; shift 2 ;; + esac + ;; --) shift break