Unikernel-Systems / DockerConEU2015-demo

The `docker run unikernel` demo DockerCon EU (Nov 2015)
Other
142 stars 18 forks source link

DockerCon EU 2015: Unikernels, meet Docker!

This repository contains the source code for the unikernel demo presented at DockerCon EU 2015.

Requirements

Minimal quick start

  1. make pull. This pulls mato/rumprun-packages-hw-x86_64 which will take a while. This image contains the prebuilt rumprun unikernels for mysql, nginx and php.
  2. make. This builds the unikernel containers.
  3. make rundns. Runs a DNS server on docker0, using mgood/resolvable.
  4. sudo ./docker-unikernel run -P --hostname nginx unikernel/nginx.
  5. Browse to http://nginx/.

This will start a container with an Nginx unikernel, serving static files.

Demo unikernels

The following unikernels were shown in the DockerCon demo:

MySQL, Nginx + PHP with Nibbleblog

To run these, see demo.sh. After running unicluster_run, if you browse to http://blog/ you will get the Nibbleblog install page.

In addition to the unikernels shown in the DockerCon demo, this repository also includes some extra unikernels which we did not have time to show:

Nginx serving static files

Run with sudo ./docker-unikernel run -P --hostname nginx unikernel/nginx and browse to http://nginx/. This shows a standalone Nginx unikernel serving static files. Browse to http://nginx/root/ for extra fun!

Nginx + PHP "barebones" example

Run with:

sudo ./docker-unikernel run --hostname php unikernel/php
sudo ./docker-unikernel run -P --hostname nginx-fastcgi unikernel/nginx-fastcgi

Browse to http://nginx-fastcgi/. This shows a simplest possible PHP example, with phpinfo().

Known issues