Slide 1

Slide 1 text

Vagrant: why and how. Giustino Borzacchiello - MotorK HQ - 15/07/2016

Slide 2

Slide 2 text

Why?

Slide 3

Slide 3 text

The old days: PHP and MySQL

Slide 4

Slide 4 text

Nowadays: PHP MySQL Java Grails Solr JavaScript Backbone.js React npm Grunt gulp.js Sass Less.js postcss CouchDB memcached phpMyAdmin Git webgrind Node. js nginx Apache WordPress

Slide 5

Slide 5 text

Installation

Slide 6

Slide 6 text

Configuration

Slide 7

Slide 7 text

Works on my machine

Slide 8

Slide 8 text

Multiple projects

Slide 9

Slide 9 text

Different operating systems

Slide 10

Slide 10 text

Vagrant is a tool for building, automatically, complete development environments, sandboxed in a virtual machine.

Slide 11

Slide 11 text

How?

Slide 12

Slide 12 text

Install Vagrant

Slide 13

Slide 13 text

Install VirtualBox

Slide 14

Slide 14 text

$ vagrant init hashicorp/precise64

Slide 15

Slide 15 text

$ vagrant up

Slide 16

Slide 16 text

No content

Slide 17

Slide 17 text

$ vagrant status

Slide 18

Slide 18 text

$ vagrant ssh

Slide 19

Slide 19 text

$ vagrant suspend

Slide 20

Slide 20 text

$ vagrant halt

Slide 21

Slide 21 text

Demo

Slide 22

Slide 22 text

Use case: WordPress development environment in MotorK

Slide 23

Slide 23 text

No content

Slide 24

Slide 24 text

Standing on the shoulders of giants: VVV

Slide 25

Slide 25 text

Our challenges: Our solutions

Slide 26

Slide 26 text

Private repositories: SSH forwarding

Slide 27

Slide 27 text

Database sync with production: Single repo with dumps

Slide 28

Slide 28 text

Windows: Linux/Mac

Slide 29

Slide 29 text

What’s missing?

Slide 30

Slide 30 text

Providers

Slide 31

Slide 31 text

Provisioners

Slide 32

Slide 32 text

Multiple machines

Slide 33

Slide 33 text

Machine sharing

Slide 34

Slide 34 text

Takeaways

Slide 35

Slide 35 text

If my hard disk dies tomorrow, how much time should I spend to be productive again?

Slide 36

Slide 36 text

Automate all the things!

Slide 37

Slide 37 text

Thank you!