GithubHelp home page GithubHelp logo

charlesakalugwu / vagrant-docker-weave Goto Github PK

View Code? Open in Web Editor NEW

This project forked from brunobonacci/vagrant-docker-weave

0.0 3.0 1.0 256 KB

Multi nodes vagrant setup for docker and weave testing

License: Apache License 2.0

Shell 100.00%

vagrant-docker-weave's Introduction

vagrant-docker-weave

Multi nodes vagrant setup for Docker and Weave testing.

This Vagrant project allows you to easily setup and test multiple configuration of Docker and Weave.

vagrant-docker-weave repo available at: https://github.com/BrunoBonacci/vagrant-docker-weave

Authors:

  • Bruno Bonacci

Documentation convensions

We will have to execute a number of different commands in different boxes. To easily identify which box are we referring to we will follow this convension:

$ echo "this is the host machine, like your laptop"
node2$ echo "this is a command to execute in the Vagrant node2"
cnt1$ echo "this command is to be run inside the container1"

To start the cluster run:

$ vagrant up

To ssh into any of the three nodes just type:

$ vagrant ssh <node_name>

Example, to ssh into node 3 type:

$ vagrant ssh node3

To access a specific container first you need to ssh into the node which is hosting the container, then run

$ docker attach <container-id>

the container-id can be retrieved with

$ docker ps

To stop the cluster:

$ vagrant halt

To dispose the cluster

$ vagrant destroy

Usage

You can start the cluster of nodes with:

$ vagrant up

This will start 3 nodes with a host-only network set up on 20.20.20.21/24. Every node will have docker and weave pre-installed.

Generally we are going to try to create a network topology for our containers as the main container network. For this reason our container will be started specifying --net=none to Docker to instruct it to not create the default container's network. Where this is not possible I will highlight case by case.

For a more interative session I do suggest to open at least three independent terminal windows and ssh into all three nodes. Then you can choose any of the following sample and run the node setup scripts.

License

Copyright © 2015 B. Bonacci

Distributed under the Apache License v 2.0 (http://www.apache.org/licenses/LICENSE-2.0)

vagrant-docker-weave's People

Contributors

brunobonacci avatar

Watchers

James Cloos avatar Charles Akalugwu avatar  avatar

Forkers

altay13

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.