Docker & Dokku


by @skorfmann

Docker.io


  • Formerly known as "dotCloud"
  • Used to be PaaS / Heroku Style
  • Turned into "Docker"

Why?

Docker


Docker


Goals



  • Build once, run anywhere
  • Immutable
  • Stateless

TEchnology


  • Container
  • Very thin layer
  • Go / Python

container VS VM

Lightweight


System


Where Does It run

  • Ubuntu
  • Debian
  • Arch
  • ...
  • MacOSX (sort of)

Paas (Heroku Style)



  • Dokku
  • Flynn
  • Deis
  • Tsuru

Dokku


  • Heroku in 100 lines of Bash

What is Not?


  • Multi Host
  • Multi Tenancy
  • Client App

What is it then?


  • Easy playground
  • Straightforward
  • Affordable
  • Probably production ready

Components


  • Docker
  • Buildstep
  • pluginhook
  • sshcommands
  • nginx

Plugins


  • MySQL
  • Postgres
  • Redis
  • Memcached
  • Write your own

Getting Started


  • Ubuntu 12.04
  • Docker
  • One-Line Bash-Command

Even Easier


Deploy


  • add git remote
  • git push
  • watch & enjoy

Continuous Deployment


  • Github
  • Drone.io (like Travis CI)
  • Dokku

Example




blog.saigonrb.com

github.com/skorfmann/blog





Questions?






coderetreat.vn


Ruby BBQ

 11. March at 5 PM

WORK Saigon

Docker & Dokku

By skorfmann

Docker & Dokku

  • 1,394