Skip to content

ChichiDevops/swarm-demo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

This is a use case demo showcasing some of the features in swarm. We'll use this for a presentation that we are providing for one of our first Docker Meetup groups in Sacramento.

Docker Scaramento Meetup Group

Requirements

  1. You'll need Docker Toolbox
  2. Download the GitHub Desktop which comes with git and a bash client.
  3. A system with about ~16G of RAM, and 4 Cores. SSD drive is highly desirable. An internet connection with 10 mBits / sec or better.

Time Estimate

  • Allow 60 minutes for swarm cluster provisioning.
  • Allow 30 minutes to execute the demo.

How to prepare

  1. Install all requirements: Docker Toolbox and GitHub Desktop
  2. Clone this repository : git clone https://github.com/wenlock/swarm-demo
  3. If you have a proxy, setup the proxy.env file with the following contents:
    PROXY=yourproxy.com:8080
    
    Source both the proxy.env and proxy.sh before running the bootstrap.sh script.
  4. Run the demo bootstrap script: bash setup/bootstrap.sh

What have we done so far and whats next?

Running the demo

Now lets do swarm use cases!

Trouble shoot

docker-machine complains about certs

Sometime you might get this error:

docker-swarm-node-1 node ls
error during connect: Get https://192.168.99.101:2376/v1.29/nodes: x509: certificate is valid for 192.168.99.100, not 192.168.99.101

This might be a good indicator it's time to regenerate your certs because the time or ip addresses are wrong due to boot sequence. Usually this occurs after reboot.

This script should make sure your cluster is up and running and will regenerate the certs automatically.

setup/start.sh

About

Use case demo's with swarm

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Groovy 54.4%
  • Shell 40.4%
  • Makefile 4.5%
  • Other 0.7%