PHP London Meetup December 2012
Upcoming SlideShare
Loading in...5

PHP London Meetup December 2012



Using Virtual Box,Vagrant,Chef in your development environment

Using Virtual Box,Vagrant,Chef in your development environment



Total Views
Slideshare-icon Views on SlideShare
Embed Views



4 Embeds 218 165 46 6 1



Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
Post Comment
Edit your comment

    PHP London Meetup December 2012 PHP London Meetup December 2012 Presentation Transcript

    • About the Speaker• Originally from Cape Town South Africa been living and working in London for 6 years.• Developing with PHP on the lamp stack since 2002.• Currently work at a well known charity on their scalable fundraising platform.• Follow me on twitter @jeremyquinton
    • Using Vagrant, Virtual Box and Chef in yourDevelopment Environment
    • The future of Development@mitchellh creator and maintainer of vagrant
    • WHY?“Vagrant lowers development environmentsetup time, maximize dev/prod parity, andmakes the „works on my machine‟ excuse arelic of the past.”-
    • Components of a virtualised development environment• Virtualbox - virtualisation layer.• Vagrant• Provisioning tool like chef or puppet.
    • Virtual Box• Virutalisation product freely available as Open Source Software under (GPL) version 2.• Supports all major platforms.• Community effort backed by a big company.• Grab a copy for your platform at
    • Vagrant• “A tool to transparently manage all the complex parts of modern development within a virtual environment without affecting the everyday workflow of the developer too much.” -• Opensource project and written in Ruby, a command line tool. Supported on most major operating systems.• Hashicorp - hashicorp.html• Grab a copy here - for a package or install with ruby gems.
    • Chef• Chef is a open source provisioning tool which was built for automating the cloud.• There are hundreds of recipes which are already written so you can simply re-use them.• Can be installed via ruby gems. gem install chef• Different configurations chef solo will be used in the examples.
    • Windows Developer VCS Mac Osx Developer VagrantFile Linux DeveloperChef Solo Scripts 1. vagrant add box box_name 2. vagrant up 3. vagrant provisionDeployment Staging Production tool
    • How vagrant works• Vagrant instance is managed with Vagrantfile which is ruby syntax.• 28 configuration options. You don‟t need to use them all I‟ll demo 7 today. Full list on
    • Basic VagrantFile• Vagrant box file can be obtained from 3 places
    • Three methods to create a box file Method Pros Cons Download a box file from - Simplest - You don‟t know whats on - Up and running quickly the base box - Time consuming. - Gives understanding of the - Miss a step or do a step Using the instructions off specifics of a vagrant box wrong and you have a setup vagrant box which has odd behaviour Using the opensource project VeeWee off github - Simpler,Powerful - Templates for most server operating systemswee
    • Vagrant file options
    • Chef configuration
    • • Download Virtualbox 4.1.22• Download vagrant package or install via ruby gems• Add to /etc/hosts• Get the project git clone cd vagrant_demo• vagrant up --no-provision• vagrant provision• Browse to
    • • .0.5• /•••