15
Vagrant / Ansible / Docker Farmbio Mini-workshop May 6, 2015 Samuel Lampa @smllmp // +samuellampa // bionics.it PhD Student / Developer at www.farmbio.uu.se // bils.se

Vagrant, Ansible and Docker - How they fit together for productive flexible development environments

Embed Size (px)

Citation preview

Vagrant / Ansible / Docker

Farmbio Mini-workshopMay 6, 2015

Samuel Lampa@smllmp // +samuellampa // bionics.it

PhD Student / Developer atwww.farmbio.uu.se // bils.se

Wrapping up the above in a single command (almost)

Light-weight containers

Configuration Management

+

+

=Excellent combo

SSH

- container- playbook

- box

But, does docker haz SSH?

Nope

Solution: Phusion's base image

→ phusion.github.io/baseimage-docker

Phusion base image

● Docker● Ubuntu 14.04 LTS (Long Term Support)● SSH● Bunch of other services (initd something, etc),

that make things like multiple processes run smoothly ...

Vagrantfile

Vagrantfile – Docker part

Dockerfile

playbook.yml

roles/luigi/tasks/main.yml

Just two pip packages!

How to start this?

Don't want to re-invent the wheel?

● Feel free to re-use:– github.com/samuell/devbox-base– github.com/samuell/devbox-python– github.com/samuell/devbox-golang

Thank you!