The code is quite messy, but particularly the argument parsing and volume-mounting. Also, it doesn't support args with spaces, or non-absolute file-paths.
19 lines
391 B
Bash
Executable File
19 lines
391 B
Bash
Executable File
#! /bin/bash
|
|
|
|
. ./config.sh
|
|
|
|
start_suite "Boot the proxy with TLS-enabled Docker support"
|
|
|
|
PWD=$($SSH $HOST1 pwd)
|
|
|
|
weave_on $HOST1 launch
|
|
weave_on $HOST1 launch-proxy \
|
|
--tls \
|
|
--tlscacert $PWD/tls/$HOST1.ca.pem \
|
|
--tlscert $PWD/tls/$HOST1.server.pem \
|
|
--tlskey $PWD/tls/server-key.pem
|
|
|
|
assert_raises "proxy docker_on $HOST1 --tls --tlscacert ./tls/$HOST1.ca.pem ps"
|
|
|
|
end_suite
|