GithubHelp home page GithubHelp logo

hientran1985 / dockerconeu2015-demo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from unikernel-systems/dockerconeu2015-demo

0.0 1.0 0.0 944 KB

The `docker run unikernel` demo DockerCon EU (Nov 2015)

License: Other

Makefile 0.69% Shell 2.96% Nginx 0.54% PHP 47.42% JavaScript 24.32% CSS 22.30% HTML 1.63% C 0.14%

dockerconeu2015-demo's Introduction

DockerCon EU 2015: Unikernels, meet Docker!

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

Requirements

  • A Linux machine with KVM and Docker installed.
  • As part of the build process, genisoimage and makefs need to be installed on the host in order to generate the filesystems used by the unikernels. On Debian, apt-get install genisoimage makefs is sufficient.
  • docker-unikernel requires root access in order to be able to plumb networking into the unikernel/KVM container.
  • Optional: A kernel patched with macvtap.patch from this repository. (See Known issues below)

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

  • mysql: A MySQL unikernel.
  • nginx-nibbleblog, php-nibbleblog: The Nginx+PHP unikernel cluster running 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

  • Due to a kernel bug in the macvtap driver you will not be able to run more than one instance of docker-unikernel on a single host. There is a tentative workaround in macvtap.patch, refer there if feeling brave.

dockerconeu2015-demo's People

Contributors

mato avatar avsm avatar

Watchers

 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.