Proof-of-Concept for proxy TLS support

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.
This commit is contained in:
Paul Bellamy committed 2015-06-01 16:50:52 +01:00
1 parent 4774043295
commit 74afbc5505
9 files changed
+265 -20

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
#! /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