Git Product home page Git Product logo

digitalocean-docker-swarm's Introduction

DigitalOcean Docker 1.12rc2

This playbook launches a number of Ubuntu 16.04 droplets in [Digital Ocean][1], configures a firewall, installs Docker 1.12rc2 and then sets up a Swarm so you can test the new orchestration features.

Setup

You will also need to ensure you have the following python module installed on your localhost;

sudo pip install 'dopy>=0.3.5,<=0.3.5'

Varibles

Create a file called do.yml in the group_vars folder, this file should contain your DigitalOcean API token and also the name of the ssh key you want to use.

echo 'do_api_token: "sdnjkjdfgkjb345kjdgljknqwetkjwhgoih314rjkwergoiyu34rjkherglkhrg0"' > group_vars/do.yml
echo 'ssh_key_name: "Your Key Name"' > group_vars/do.yml

You can change the number of workers being launched in the environment.yml which is also in the group_vars folder.

Notes on SSH keys

If the key matches one that you already have present in DigitalOcean then you must use the exact name associated with the key, if you don't you will receive an error stating that the key already exists.

If you don't have a key on the machine you are running Ansible on then one will be created and uploaded.

Launching & Destroying the Droplets

To launch the droplets run;

ansible-playbook -i hosts launch.yml

Once you have finished and want to remove them run;

ansible-playbook -i hosts remove.yml

digitalocean-docker-swarm's People

Contributors

russmckendrick avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.