Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

A short introduction to Vagrant for developers

685 views

Published on

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

Published in: Technology
  • Be the first to comment

A short introduction to Vagrant for developers

  1. 1. …and why it could be your new best friend! @jreijn
  2. 2. DOING CONSULTING? • MySQL? • Couchbase? • Postgres? • Elasticsearch? • Oracle? • SOLR? • MongoDB? • Java 6, 7 or 8?
  3. 3. LOCAL INSTALLATION?
  4. 4. =
  5. 5. 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
  6. 6. VAGRANTFILE
  7. 7. MORE COMMANDS $ vagrant status
 $ vagrant ssh
 $ vagrant reload
 $ vagrant provision
 $ vagrant suspend
 $ vagrant resume
 $ vagrant halt
 $ vagrant destroy
 $ vagrant package
 $ vagrant plugin
  8. 8. VAGRANT PROVISION
  9. 9. PUPPET class { 'postgresql::server': } class { 'postgresql::server::contrib':} postgresql::server::db { 'book':
 user => 'vagrant',
 password => postgresql_password('vagrant', 'password')
 }
  10. 10. RESOURCES • Vagrant website: http://www.vagrantup.com/ • List of available Vagrant boxes: http:// www.vagrantbox.es/ • Virtualbox: https://www.virtualbox.org/

×