This repository contains a set of Dockerfiles that build the pieces for a midonet deployment.
- Ubuntu 14.04
- [Centos 7] (https://registry.hub.docker.com/_/centos/)
ATTENTION!: Docker containers share kernel with the host. Midolman agent is attached to openvswitch kernel datapath. We strongly recommend you to follow this steps in a Virtual Machine.
- Install Docker
$ wget -qO- https://get.docker.com/ | sh```
- Clone repo:
$ git clone http://github.com/midonet/midonet-dockerfile
$ cd midonet-dockerfile
- Be sure the openvswitch module is loaded in you docker server machine
$ modprobe openvswitch
- Run the fig script. (You may need to install
fig via pip
pip install fig
)
$ fig up -d
- All the services will be running in this moment. Run a new container using the midonet-cli binary linked to the midonet api to start playing with midonet cli:
$ fig run cli midonet-cli
- If you want to try out the centos version of the midonet containers you can
just modify the fig.yml file to point to the docker images for midolman,
midonet-api and midonet-cli with tag 2014.11-rc3_centos (or newer '_centos'
tag). Then run the previous
fig run cli midonet-cli
command.
Midonet agents can be easily scaled. (Cassandra and Zookeeper can not now). Deploy diferent midonet agents (in your enviroment they will behave as if they were hypervisors)
$ fig scale midolman=4
After a few seconds, log in into the midonet-cli and check your 'hosts':
If you enjoy watching how packages are installed and/or you don't mind wasting you time and your vision in a terminal window, we have something for you: build docker images by yourself instead of download them from docker registry!
- Run the
build_testing_images.sh
script. We will have the images pushed in Docker Hub Registry soon.