In the proxy, I swapped the 'flag' library for 'code.google.com/p/getopt', which uses double-dash flags. proxy lets 'weave attach' do dns registration on container start proxy needs to set DNSSearch if not specified
19 lines
452 B
Bash
Executable File
19 lines
452 B
Bash
Executable File
#! /bin/bash
|
|
|
|
. ./config.sh
|
|
|
|
C1=10.2.0.78
|
|
C2=10.2.0.34
|
|
NAME=seetwo.weave.local
|
|
|
|
start_suite "Proxy registers containers with dns"
|
|
|
|
weave_on $HOST1 launch-dns 10.2.254.1/24
|
|
weave_on $HOST1 launch-proxy --with-dns
|
|
docker_proxy_on $HOST1 run -e WEAVE_CIDR=$C2/24 -dt --name=c2 -h $NAME gliderlabs/alpine /bin/sh
|
|
docker_proxy_on $HOST1 run -e WEAVE_CIDR=$C1/24 -dt --name=c1 aanand/docker-dnsutils /bin/sh
|
|
|
|
assert_dns_record $HOST1 c1 $NAME $C2
|
|
|
|
end_suite
|