From 948691a7d6498cb14f6d9fc36969141da7c2348a Mon Sep 17 00:00:00 2001 From: "Palm, Niek" Date: Fri, 11 Mar 2016 15:25:16 +0000 Subject: [PATCH 1/2] Add missing commands and a hint --- www/htdocs/index.html | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/www/htdocs/index.html b/www/htdocs/index.html index 02342267..b095ce60 100644 --- a/www/htdocs/index.html +++ b/www/htdocs/index.html @@ -1941,7 +1941,7 @@ class: title - Issue commands `SAVE` then `QUIT` -- Look at `/data` again +- Look at `/data` again (notice the time stamps) ] @@ -4189,7 +4189,7 @@ Note: good guy ~~Stevedore~~ Docker will start without K/V - Make sure you're logged into `node1`, with a clean environment: - + ``` unset DOCKER_HOST ``` @@ -4413,6 +4413,7 @@ Note: good guy ~~Stevedore~~ Docker will start without K/V (its original network): ``` docker network disconnect blue turquoise + docker network connect green turquoise ``` - Check connectivity: @@ -4644,6 +4645,7 @@ Copy-paste this into `docker-compose.yml` - Start the application: ``` + export COMPOSE_FILE=docker-compose.yml-XXXX docker-compose up -d ``` @@ -4703,7 +4705,7 @@ How can we scale that service? - a load balancer taking over the name `rng`,
and spreading traffic accross all instances - + - You should have a sense of *déjà vu* - We did that in the beginning of the workshop @@ -4777,13 +4779,13 @@ class: pic - Networks (other than the default one) *must* be declared in a top-level `networks` section - + .exercise[ - Add the `rng` network to the Dockerfile: ``` version: '2' - + networks: rng: From 73b997faf783d1c493f60fde820e52a67e8485fd Mon Sep 17 00:00:00 2001 From: "Palm, Niek" Date: Fri, 11 Mar 2016 15:59:16 +0000 Subject: [PATCH 2/2] add sudo so docker can install consulfs --- www/htdocs/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/htdocs/index.html b/www/htdocs/index.html index b095ce60..c128dc3e 100644 --- a/www/htdocs/index.html +++ b/www/htdocs/index.html @@ -5097,7 +5097,7 @@ class: pic - Be lazy and use the Docker image: ``` - docker run --rm -v /usr/local/bin:/target jpetazzo/consulfs + sudo docker run --rm -v /usr/local/bin:/target jpetazzo/consulfs ``` ] @@ -5174,7 +5174,7 @@ Leave this running in the foreground. - Install `consulfs` and mount Consul: ``` - docker run --rm -v /usr/local/bin:/target jpetazzo/consulfs + sudo docker run --rm -v /usr/local/bin:/target jpetazzo/consulfs mkdir ~/consul consulfs localhost:8500 ~/consul ```