Docker & Dokku
by @skorfmann
Docker.io
- Formerly known as "dotCloud"
- Used to be PaaS / Heroku Style
- Turned into "Docker"
Why?
Goals
- Build once, run anywhere
- Immutable
- Stateless
TEchnology
- Container
- Very thin layer
- Go / Python
container VS VM
Where Does It run
- Ubuntu
- Debian
- Arch
- ...
- MacOSX (sort of)
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
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
Ruby BBQ
11. March at 5 PM
WORK Saigon