Skip to content

deviantony/vagrant-swarm-cluster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vagrant Swarm cluster

Run a Swarm cluster locally using Vagrant.

This will create and setup 2 Vagrant machines in a private network (10.0.7.0/24):

  • Swarm node 1 (manager): 10.0.7.10
  • Swarm node 2 (worker): 10.0.7.11

Requirements

Install Vagrant and Docker on your machine.

Ensure you have a valid Vagrant provider installed.

Setup

Boot Vagrant machines

The first thing you must do is to start the Vagrant machines using your favorite provider:

$ git clone https://github.com/deviantony/vagrant-swarm-cluster.git
$ cd vagrant-swarm-cluster
$ vagrant up --provider virtualbox

Supported providers:

  • virtualbox

Bootstrap script

If you're on Unix, you can execute the start_cluster.sh script to bootstrap the Swarm cluster:

$ chmod +x start_cluster.sh
$ ./start_cluster.sh

About

Vagrant boxes used to create a Docker Swarm cluster

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages