Launch WeaveDNS with "launch_dns_on"

This commit is contained in:
Alvaro Saurin committed 2015-06-16 15:29:36 +02:00
1 parent 8b5d0e3fbd
commit 8a935e3cb2
11 files changed
+18 -12

No files matched your search

+7 -1
View File
@@ -37,7 +37,7 @@ CHECK_ETHWE_UP="grep ^1$ /sys/class/net/ethwe/carrier"
DOCKER_PORT=2375
WEAVEDNS_ARGS="--no-cache"
[ -n "$DEBUG" ] && WEAVEDNS_ARGS="--debug"
[ -n "$DEBUG" ] && WEAVEDNS_ARGS="$WEAVEDNS_ARGS --debug"
remote() {
rem=$1
@@ -102,6 +102,12 @@ exec_on() {
docker -H tcp://$host:$DOCKER_PORT exec $container "$@"
}
launch_dns_on() {
host=$1
shift 1
weave_on $host launch-dns $@ $WEAVEDNS_ARGS
}
start_container() {
host=$1
shift 1