a short introduction to vagrant for developers

15
…and why it could be your new best friend! @jreijn

Upload: jeroen-reijn

Post on 16-Jun-2015

247 views

Category:

Technology


1 download

DESCRIPTION

This was my 8 minute presentation about "Vagrant for developers" at one of our internal Hippo Friday sessions.

TRANSCRIPT

Page 1: A short introduction to Vagrant for developers

…and why it could be your new best friend!

@jreijn

Page 2: A short introduction to Vagrant for developers

DOING CONSULTING?• MySQL?

• Postgres?

• Oracle?

• MongoDB?

• Couchbase?

• Elasticsearch?

• SOLR?

• Java 6, 7 or 8?

Page 3: A short introduction to Vagrant for developers

LOCAL INSTALLATION?

Page 4: A short introduction to Vagrant for developers
Page 5: A short introduction to Vagrant for developers
Page 6: A short introduction to Vagrant for developers

=

Page 7: A short introduction to Vagrant for developers

JUST 3 STEPS!# Download and set the “base” VM image$ vagrant box add base http://files.vagrantup.com/precise64.box

# Initialise a new vagrant project by creating a Vagrantfile$ vagrant init

# Boot the VM based on the config file we created$ vagrant up

Page 8: A short introduction to Vagrant for developers

VAGRANTFILE

Page 9: A short introduction to Vagrant for developers
Page 10: A short introduction to Vagrant for developers

MORE COMMANDS$ vagrant status $ vagrant ssh $ vagrant reload$ vagrant provision$ vagrant suspend$ vagrant resume $ vagrant halt $ vagrant destroy $ vagrant package $ vagrant plugin

Page 11: A short introduction to Vagrant for developers

VAGRANT PROVISION

Page 12: A short introduction to Vagrant for developers

PUPPETclass { 'postgresql::server': }

class { 'postgresql::server::contrib':}

postgresql::server::db { 'book': user => 'vagrant', password => postgresql_password('vagrant', 'password')}

Page 13: A short introduction to Vagrant for developers
Page 14: A short introduction to Vagrant for developers

RESOURCES

• Vagrant website: http://www.vagrantup.com/

• List of available Vagrant boxes: http://www.vagrantbox.es/

• Virtualbox: https://www.virtualbox.org/

Page 15: A short introduction to Vagrant for developers