Skip to content

Commit

Permalink
clean up tls for #13
Browse files Browse the repository at this point in the history
  • Loading branch information
schvin committed Dec 4, 2014
1 parent e203135 commit 40a4a76
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ blimp

Mechanism to easily move a container from one Docker host to another, show containers running against all of your hosts, replicate a container across multiple hosts and more.

Relies on the `docker hosts` feature proposed in docker#8681 and laid out in this branch: https://github.com/bfirsh/docker/tree/host-management
Relies on the `docker machines` feature proposed in docker#8681 and laid out in this branch: https://github.com/bfirsh/docker/tree/host-management

See it in action: https://www.youtube.com/watch?v=L66f5kkN7W8

environment
=======

The environment variable `DOCKER_BINARY` can be set to a specific path for an alternate or path-specific docker binary. Often needed if you have built the branch for `docker hosts` capability on a shared system.
The environment variable `DOCKER_BINARY` can be set to a specific path for an alternate or path-specific docker binary. Often needed if you have built the branch for `docker machines` capability on a shared system.

install
=======
Expand All @@ -21,7 +21,7 @@ dependencies: curl, perl

build docker from the `host-management` branch of `@bfirsh`'s fork from here: https://github.com/bfirsh/docker/tree/host-management

add some hosts using `docker hosts`
add some hosts using `docker machines`

`git clone https://github.com/tubesandlube/blimp.git`

Expand Down
12 changes: 11 additions & 1 deletion bin/blimp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Assumptions:
# docker is running -dev w/ the `machines` command available
#
# All docker hosts attached are pointing to the same registry, and
# All docker machines attached are pointing to the same registry, and
# that the original container was booted from an image there
#
# You are running this from the directory where blimp exists; need to
Expand All @@ -17,6 +17,10 @@
# username setup, you can add it as a parameter for 'Host' in your
# ~/.ssh/config
#
# You have setup TLS authentication for client authentication against
# the hosts using docker machines. Documentation at this url and within
# the `docs` dir in the source: https://docs.docker.com/articles/https/
#
# To do:
#
# address dupe container name possibility, take container ids...
Expand Down Expand Up @@ -51,6 +55,12 @@ require hosts;
require logger;
require volumes;

# setup default TLS auth
$ENV{'DOCKER_AUTH'} = $ENV{'DOCKER_AUTH'} || "cert";
$ENV{'DOCKER_AUTH_CA'} = $ENV{'DOCKER_AUTH_CA'} || "~/.docker/ca.pem";
$ENV{'DOCKER_AUTH_CERT'} = $ENV{'DOCKER_AUTH_CERT'} || "~/.docker/cert.pem";
$ENV{'DOCKER_AUTH_KEY'} = $ENV{'DOCKER_AUTH_KEY'} || "~/.docker/key.pem";

my $argnum;
my @args;
my $c;
Expand Down

0 comments on commit 40a4a76

Please sign in to comment.