Giter VIP home page Giter VIP logo

maas-docker's Introduction

Docker MaaS

Build Status

This repo contains a Dockerfile and an ansible playbook to build a Docker image with Canonical's MaaS. The build procedure is a little different from usual Dockerfiles, because we have to start the container in privileged mode to finish building.

To build the container, type

make build

This will build a first docker image, then run that image in --privileged mode to finish the installation. To run the image, create a persistent volume:

make persistent_data

Then start the image

make run_persistent

If you want to boot pysical nodes with MaaS create a docker network that contains a physical interface. Assuming your physical network is on the 192.168.1.0/24 subnet, create a new docker network with

docker network create --subnet=192.168.1.0/24 net1

The network net1 will then show up in the list of docker networks:

$ docker network ls
NETWORK ID          NAME                    DRIVER
c93f2f6e09df        bridge                  bridge              
f1013ec4aa62        host                    host                
094a5738492a        net1                    bridge              
a9c220157a01        none                    null                
9ff0cc43cec6        sentrycompose_default   bridge  

and in the list of bridges:

$ brctl show
bridge name	bridge id		STP enabled	interfaces
br-094a5738492a		8000.0242ea91311f	no		eth1

You can add physical devices (e.g. eth0) by typing

brctl addif br-094a5738492a eth0

Now stop the running container and start a new container inside the newly created docker container:

make rm # stops and removes container
make run_persistent -e NET=net1

You should be able to deploy machines in MaaS now.

maas-docker's People

Contributors

mvdbeek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  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.