SlideShare a Scribd company logo
Using Virtual Machines (VM)
To Build Automated Dev Environments
Local WordPress Development
Anthony E. Alvarez
Also known as @AnthonyEalvarez
I build sites
http://AnthonyAlvarez.us
Case Study: RailsBridge NYC
Topics

Why Vagrant is so awesome

How to get up and running fast

WordPress-related Vagrant resources
Your Computer is a Beautiful Lawn
A Server is like a beach
XAMPP/MAMP is a small sandbox
Installation
Vagrant Approach
DevOps Camp 2017 NYC Local Development using Vagrant by Anthony Alvarez
Developer Benefits

Installing WordPress development environment in a reliable,
consistent and isolated way

Run a vagrant box configured exactly like production machine

Your machine is not tied to one project

Can customize each VM environment to match production.

Can have multiple VMs on a PC.

Debugging an edge issue due specific version of PHP, MySQL
etc.

Separates code and environment it runs in.

A more elegant solution compared to LAMP
The Vagrant Advantage

Repeatable

Verfiably correct

Isolated

Easy to understand

Focus on Dev not Ops

Cross Platform

Major Hypervisor support

Mature, stable, proven since 2010
Developer Workflow
1) Check out any project
2) ‘vagrant up’
3) Done
Bottom Line
Continue to work in your own browsers, editors,
and other tools.
The existence of Vagrant is
transparent and unimportant.
Vagrant is just the workhorse that creates
consistent and stable development environments.
Systems Operators
1) “vagrant up”
2) Complete sandbox to test ops scripts
Automation developed used for both production
and development.
With every vagrant up, developers get a fully
provisioned environment using the same scripts
as production.
Clean up
Vagrant destroy
Vagrant suspend
Vagrant halt.
Tao of Vagrant

Vagrant up will get you up and running at any moment.

Knowledge transfers to every project that uses Vagrant.

Vagrant is a general purpose Tool. Use it in a way that works best
for you.

May need to SSH into the machine to run some code.

No problem: vagrant ssh
Why Vagrant

Powerful work-flow

Clean abstractions

Uncompromising Flexibility
Get Up and Running Quickly
1. // Install Git and vagrant
2. // Install vagrant plugins
3. #vagrant plugin install vagrant-hostsupdater
4. // edits localhosts file and clean it when done
5. #vagrant plugin install vagrant-triggers
6. #git clone https://github.com/Varying-Vagrant-Vagrants/VVV dev
7. #git clone https://github.com/bradp/vv.git
8. //Variable VVV - the best VVV site wizard
9. #git clone https://github.com/leogopal/VVV-Dashboard
10. #mv VVV-Dashboard/dashboard* www/default/
11. #cd dev
12. #vagrant up
Varying-Vagrant-Vagrants (VVV)
Variable VVV
VagrantPress
●
Alternative to VVV for Testing plugins and themes
before deploying them on a live site
●
Creating a dev site for theme development
●
Running WordPress Betas to try new features
https://github.com/chad-thompson/vagrantpress
https://varyingvagrantvagrants.org/
WordPress Vagrant Resources

Ideas On Purpose

Mercury Vagrant

Chassis.io

Vagrant + Chef + WordPress

Salty WordPress

Evolution WordPress

VagrantPress

Atlas Directory of Vagrant Boxes
Ideas On Purpose
https://github.com/ideasonpurpose/basic-
wordpress-vagrant
Mercury Vagrant (HGV)
https://github.com/wpengine/hgv
Chassis.io
Use Chassis if you want an environment that’s simple yet powerful. It’s a minimalist
development setup that boots up fast and gets out of the way.
Use VVV if you want an environment that comes with lots of features, is highly extensible,
and can run many different site configurations.
Chassis is an open source virtual server for your WordPress site, built using Vagrant
Vagrant + Chef + WordPress
vccw.cc
Salty WordPress
Uses three great technologies: Salt, Vagrant, and
WordPress.
https://github.com/humanmade/Salty-WordPress
Evolution WordPress
Generate an entirely versioned, multi-environment
Wordpress site in under a minute!
https://github.com/evolution/wordpress
VagrantPress
VagrantPress is a packaged development
environment for developing WordPress themes
and modules.
https://github.com/chad-thompson/vagrantpress
Atlas Directory of Boxes
https://app.vagrantup.com/boxes/search
Thankyou
http://AnthonyAlvarez.us

More Related Content

PDF
Vagrant for local and team WordPress Development
Anthony Alvarez
 
PPT
Behat sauce
Shashikant Jagtap
 
PPT
Dockerizing BDD : Ruby-Cucumber Example
Shashikant Jagtap
 
ODP
iOS Developers Conference-iOS Automation with Cucumber, Appium and Saucelabs
Shashikant Jagtap
 
PPT
Dockerising Appium : London Appium Meetup
Shashikant Jagtap
 
PDF
Tomcat Maven Plugin
Olivier Lamy
 
ODP
iOS Automation with Cucumber, Appium and Saucelabs
Shashikant Jagtap
 
PDF
Powering Development and Testing Environments with Vagrant
Coen Jacobs
 
Vagrant for local and team WordPress Development
Anthony Alvarez
 
Behat sauce
Shashikant Jagtap
 
Dockerizing BDD : Ruby-Cucumber Example
Shashikant Jagtap
 
iOS Developers Conference-iOS Automation with Cucumber, Appium and Saucelabs
Shashikant Jagtap
 
Dockerising Appium : London Appium Meetup
Shashikant Jagtap
 
Tomcat Maven Plugin
Olivier Lamy
 
iOS Automation with Cucumber, Appium and Saucelabs
Shashikant Jagtap
 
Powering Development and Testing Environments with Vagrant
Coen Jacobs
 

What's hot (20)

PDF
Testing as a container
Irfan Ahmad
 
PDF
Vagrant: The ability to create production environments from day 1 of development
Paul Stack
 
PDF
Gitlab flow solo
viniciusban
 
PPTX
Lightning branches at RedMart (Js conf Asia 2014 Talk)
Ritesh Angural
 
PPTX
React Fiber
Brandon Dail
 
PDF
Continuous Updating with VersionEye at code.talks 2014
Robert Reiz
 
PPTX
Varying WordPress Development Environment WordCamp Cincinnati 2016
David Brattoli
 
PPTX
RedMart Migrating from EC2 to VPC with Chef
Ritesh Angural
 
PDF
There is-no-snapshot
Ole Christian Langfjæran
 
PDF
"13 ways to run web applications on the Internet" Andrii Shumada
Fwdays
 
PDF
OSCamp 2019 | #3 Ansible: Automated Tests of Ansible code with GitLab, Vagran...
NETWAYS
 
PDF
NCUG 2019: Super charge your API’s with Reactive streams
Frank van der Linden
 
PDF
Google App Engine: For PHP Developers
Abu Ashraf Masnun
 
PDF
My Top 5 Favorite Gems
Jimmy Ngu
 
PDF
Zalenium - SeleniumConf Austin 2017
Selenium Conference Austin 2017
 
KEY
ActiveLAMP Process
Tom Friedhof
 
PDF
OpenShift: Java EE in the clouds
Max Andersen
 
PPTX
Vagrant
Benoit Borrel
 
PDF
Improve your Java Environment with Docker
HanoiJUG
 
PPTX
Supermondays: Jenkins CI lightning talk
Michael Peacock
 
Testing as a container
Irfan Ahmad
 
Vagrant: The ability to create production environments from day 1 of development
Paul Stack
 
Gitlab flow solo
viniciusban
 
Lightning branches at RedMart (Js conf Asia 2014 Talk)
Ritesh Angural
 
React Fiber
Brandon Dail
 
Continuous Updating with VersionEye at code.talks 2014
Robert Reiz
 
Varying WordPress Development Environment WordCamp Cincinnati 2016
David Brattoli
 
RedMart Migrating from EC2 to VPC with Chef
Ritesh Angural
 
There is-no-snapshot
Ole Christian Langfjæran
 
"13 ways to run web applications on the Internet" Andrii Shumada
Fwdays
 
OSCamp 2019 | #3 Ansible: Automated Tests of Ansible code with GitLab, Vagran...
NETWAYS
 
NCUG 2019: Super charge your API’s with Reactive streams
Frank van der Linden
 
Google App Engine: For PHP Developers
Abu Ashraf Masnun
 
My Top 5 Favorite Gems
Jimmy Ngu
 
Zalenium - SeleniumConf Austin 2017
Selenium Conference Austin 2017
 
ActiveLAMP Process
Tom Friedhof
 
OpenShift: Java EE in the clouds
Max Andersen
 
Vagrant
Benoit Borrel
 
Improve your Java Environment with Docker
HanoiJUG
 
Supermondays: Jenkins CI lightning talk
Michael Peacock
 
Ad

Similar to DevOps Camp 2017 NYC Local Development using Vagrant by Anthony Alvarez (20)

PDF
WordPress & Vagrant
Joe Maller
 
PPTX
Varying WordPress Development Environment WordCamp Columbus 2016
David Brattoli
 
PPTX
Varying wordpressdevelopmentenvironment wp-campus2016
David Brattoli
 
PDF
Local development with vvv jon trujillo
Jonathan Trujillo
 
PPTX
WordPress Development with VVV, VV, and Vagrant
Mitch Canter
 
PPTX
Development with Vagrant
John Coggeshall
 
PDF
Professional WordPress Development with Vagrant - Andrea Cardinali - WordCam...
Andrea Cardinali
 
ODP
It Works On My Machine: Vagrant for Software Development
Carlos Perez
 
PDF
Keep calm and vagrant up
Daniel Carvalhinho
 
PDF
Vagrant for Virtualized Development
Adam Culp
 
PPTX
Vagrant WordCamp Hamilton
Paul Bearne
 
PPTX
Vagrant for ci
Bob Small
 
PDF
Quick & Easy Dev Environments with Vagrant
Joe Ferguson
 
PDF
Virtualization with Vagrant (ua.pycon 2011)
Dmitry Guyvoronsky
 
PDF
Vagrant For DevOps
Lalatendu Mohanty
 
PDF
Take Home Your Very Own Free Vagrant CFML Dev Environment
ColdFusionConference
 
PDF
Take home your very own free Vagrant CFML Dev Environment - Presented at dev....
Gavin Pickin
 
PDF
DevOps Series: Defining and Sharing Testable Machine Configurations with vagrant
Felipe
 
PPTX
Vagrant-Overview
Crifkin
 
PDF
Improved development workflows using vagrant
Makis Asimidis
 
WordPress & Vagrant
Joe Maller
 
Varying WordPress Development Environment WordCamp Columbus 2016
David Brattoli
 
Varying wordpressdevelopmentenvironment wp-campus2016
David Brattoli
 
Local development with vvv jon trujillo
Jonathan Trujillo
 
WordPress Development with VVV, VV, and Vagrant
Mitch Canter
 
Development with Vagrant
John Coggeshall
 
Professional WordPress Development with Vagrant - Andrea Cardinali - WordCam...
Andrea Cardinali
 
It Works On My Machine: Vagrant for Software Development
Carlos Perez
 
Keep calm and vagrant up
Daniel Carvalhinho
 
Vagrant for Virtualized Development
Adam Culp
 
Vagrant WordCamp Hamilton
Paul Bearne
 
Vagrant for ci
Bob Small
 
Quick & Easy Dev Environments with Vagrant
Joe Ferguson
 
Virtualization with Vagrant (ua.pycon 2011)
Dmitry Guyvoronsky
 
Vagrant For DevOps
Lalatendu Mohanty
 
Take Home Your Very Own Free Vagrant CFML Dev Environment
ColdFusionConference
 
Take home your very own free Vagrant CFML Dev Environment - Presented at dev....
Gavin Pickin
 
DevOps Series: Defining and Sharing Testable Machine Configurations with vagrant
Felipe
 
Vagrant-Overview
Crifkin
 
Improved development workflows using vagrant
Makis Asimidis
 
Ad

Recently uploaded (20)

PDF
top-5-use-cases-for-splunk-security-analytics.pdf
yaghutialireza
 
PPTX
Chapter_Seven_Construction_Reliability_Elective_III_Msc CM
SubashKumarBhattarai
 
PPTX
sunil mishra pptmmmmmmmmmmmmmmmmmmmmmmmmm
singhamit111
 
PPTX
Online Cab Booking and Management System.pptx
diptipaneri80
 
PPTX
MULTI LEVEL DATA TRACKING USING COOJA.pptx
dollysharma12ab
 
PDF
AI-Driven IoT-Enabled UAV Inspection Framework for Predictive Maintenance and...
ijcncjournal019
 
PDF
LEAP-1B presedntation xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
hatem173148
 
PDF
Construction of a Thermal Vacuum Chamber for Environment Test of Triple CubeS...
2208441
 
PDF
FLEX-LNG-Company-Presentation-Nov-2017.pdf
jbloggzs
 
PDF
Packaging Tips for Stainless Steel Tubes and Pipes
heavymetalsandtubes
 
PDF
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
PPTX
22PCOAM21 Session 1 Data Management.pptx
Guru Nanak Technical Institutions
 
PPTX
quantum computing transition from classical mechanics.pptx
gvlbcy
 
PPTX
Tunnel Ventilation System in Kanpur Metro
220105053
 
PPTX
business incubation centre aaaaaaaaaaaaaa
hodeeesite4
 
PDF
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
PDF
The Effect of Artifact Removal from EEG Signals on the Detection of Epileptic...
Partho Prosad
 
PDF
EVS+PRESENTATIONS EVS+PRESENTATIONS like
saiyedaqib429
 
PPTX
database slide on modern techniques for optimizing database queries.pptx
aky52024
 
PDF
STUDY OF NOVEL CHANNEL MATERIALS USING III-V COMPOUNDS WITH VARIOUS GATE DIEL...
ijoejnl
 
top-5-use-cases-for-splunk-security-analytics.pdf
yaghutialireza
 
Chapter_Seven_Construction_Reliability_Elective_III_Msc CM
SubashKumarBhattarai
 
sunil mishra pptmmmmmmmmmmmmmmmmmmmmmmmmm
singhamit111
 
Online Cab Booking and Management System.pptx
diptipaneri80
 
MULTI LEVEL DATA TRACKING USING COOJA.pptx
dollysharma12ab
 
AI-Driven IoT-Enabled UAV Inspection Framework for Predictive Maintenance and...
ijcncjournal019
 
LEAP-1B presedntation xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
hatem173148
 
Construction of a Thermal Vacuum Chamber for Environment Test of Triple CubeS...
2208441
 
FLEX-LNG-Company-Presentation-Nov-2017.pdf
jbloggzs
 
Packaging Tips for Stainless Steel Tubes and Pipes
heavymetalsandtubes
 
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
22PCOAM21 Session 1 Data Management.pptx
Guru Nanak Technical Institutions
 
quantum computing transition from classical mechanics.pptx
gvlbcy
 
Tunnel Ventilation System in Kanpur Metro
220105053
 
business incubation centre aaaaaaaaaaaaaa
hodeeesite4
 
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
The Effect of Artifact Removal from EEG Signals on the Detection of Epileptic...
Partho Prosad
 
EVS+PRESENTATIONS EVS+PRESENTATIONS like
saiyedaqib429
 
database slide on modern techniques for optimizing database queries.pptx
aky52024
 
STUDY OF NOVEL CHANNEL MATERIALS USING III-V COMPOUNDS WITH VARIOUS GATE DIEL...
ijoejnl
 

DevOps Camp 2017 NYC Local Development using Vagrant by Anthony Alvarez