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
PPT
Behat sauce
PPT
Dockerizing BDD : Ruby-Cucumber Example
ODP
iOS Developers Conference-iOS Automation with Cucumber, Appium and Saucelabs
PPT
Dockerising Appium : London Appium Meetup
PDF
Tomcat Maven Plugin
ODP
iOS Automation with Cucumber, Appium and Saucelabs
PDF
Powering Development and Testing Environments with Vagrant
Vagrant for local and team WordPress Development
Behat sauce
Dockerizing BDD : Ruby-Cucumber Example
iOS Developers Conference-iOS Automation with Cucumber, Appium and Saucelabs
Dockerising Appium : London Appium Meetup
Tomcat Maven Plugin
iOS Automation with Cucumber, Appium and Saucelabs
Powering Development and Testing Environments with Vagrant

What's hot (20)

PDF
Testing as a container
PDF
Vagrant: The ability to create production environments from day 1 of development
PDF
Gitlab flow solo
PPTX
Lightning branches at RedMart (Js conf Asia 2014 Talk)
PPTX
React Fiber
PDF
Continuous Updating with VersionEye at code.talks 2014
PPTX
Varying WordPress Development Environment WordCamp Cincinnati 2016
PPTX
RedMart Migrating from EC2 to VPC with Chef
PDF
There is-no-snapshot
PDF
"13 ways to run web applications on the Internet" Andrii Shumada
PDF
OSCamp 2019 | #3 Ansible: Automated Tests of Ansible code with GitLab, Vagran...
PDF
NCUG 2019: Super charge your API’s with Reactive streams
PDF
Google App Engine: For PHP Developers
PDF
My Top 5 Favorite Gems
PDF
Zalenium - SeleniumConf Austin 2017
KEY
ActiveLAMP Process
PDF
OpenShift: Java EE in the clouds
PPTX
Vagrant
PDF
Improve your Java Environment with Docker
PPTX
Supermondays: Jenkins CI lightning talk
Testing as a container
Vagrant: The ability to create production environments from day 1 of development
Gitlab flow solo
Lightning branches at RedMart (Js conf Asia 2014 Talk)
React Fiber
Continuous Updating with VersionEye at code.talks 2014
Varying WordPress Development Environment WordCamp Cincinnati 2016
RedMart Migrating from EC2 to VPC with Chef
There is-no-snapshot
"13 ways to run web applications on the Internet" Andrii Shumada
OSCamp 2019 | #3 Ansible: Automated Tests of Ansible code with GitLab, Vagran...
NCUG 2019: Super charge your API’s with Reactive streams
Google App Engine: For PHP Developers
My Top 5 Favorite Gems
Zalenium - SeleniumConf Austin 2017
ActiveLAMP Process
OpenShift: Java EE in the clouds
Vagrant
Improve your Java Environment with Docker
Supermondays: Jenkins CI lightning talk
Ad

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

PPTX
Node.js, Vagrant, Chef, and Mathoid @ Benetech
PPTX
Varying wordpressdevelopmentenvironment wp-campus2016
PPTX
Varying WordPress Development Environment WordCamp Columbus 2016
PDF
The future of the php development environment
PDF
Local development with vvv jon trujillo
PDF
Take Home Your Very Own Free Vagrant CFML Dev Environment
PDF
Take home your very own free Vagrant CFML Dev Environment - Presented at dev....
PDF
DevOps: Using Vagrant to Enhance Your Day to Day Development
PDF
Vagrant Binding JayDay 2013
PPTX
Vagrant Up in 5 Easy Steps
PPTX
PPTX
AtoM and Vagrant: Installing and Configuring the AtoM Vagrant Box for Local T...
PDF
Developing web apps
PDF
Improved development workflows using vagrant
PPTX
Development with Vagrant
PDF
Local development environment through virtualisation
PPTX
Getting Started with Vagrant
PDF
ZendCon 2015 - Laravel Forge: Hello World to Hello Production
PDF
Making Developers Productive with Vagrant, VirtualBox, and Docker
PDF
Virtualize and automate your development environment for fun and profit
Node.js, Vagrant, Chef, and Mathoid @ Benetech
Varying wordpressdevelopmentenvironment wp-campus2016
Varying WordPress Development Environment WordCamp Columbus 2016
The future of the php development environment
Local development with vvv jon trujillo
Take Home Your Very Own Free Vagrant CFML Dev Environment
Take home your very own free Vagrant CFML Dev Environment - Presented at dev....
DevOps: Using Vagrant to Enhance Your Day to Day Development
Vagrant Binding JayDay 2013
Vagrant Up in 5 Easy Steps
AtoM and Vagrant: Installing and Configuring the AtoM Vagrant Box for Local T...
Developing web apps
Improved development workflows using vagrant
Development with Vagrant
Local development environment through virtualisation
Getting Started with Vagrant
ZendCon 2015 - Laravel Forge: Hello World to Hello Production
Making Developers Productive with Vagrant, VirtualBox, and Docker
Virtualize and automate your development environment for fun and profit
Ad

Recently uploaded (20)

PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PPTX
Internet of Things (IOT) - A guide to understanding
PDF
PPT on Performance Review to get promotions
PPTX
Lesson 3_Tessellation.pptx finite Mathematics
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PDF
Well-logging-methods_new................
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PPTX
Geodesy 1.pptx...............................................
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PPTX
web development for engineering and engineering
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PDF
Digital Logic Computer Design lecture notes
PPTX
additive manufacturing of ss316l using mig welding
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PPTX
Strings in CPP - Strings in C++ are sequences of characters used to store and...
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
Internet of Things (IOT) - A guide to understanding
PPT on Performance Review to get promotions
Lesson 3_Tessellation.pptx finite Mathematics
Model Code of Practice - Construction Work - 21102022 .pdf
Well-logging-methods_new................
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
Geodesy 1.pptx...............................................
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
Embodied AI: Ushering in the Next Era of Intelligent Systems
web development for engineering and engineering
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
Digital Logic Computer Design lecture notes
additive manufacturing of ss316l using mig welding
UNIT-1 - COAL BASED THERMAL POWER PLANTS
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
Strings in CPP - Strings in C++ are sequences of characters used to store and...

DevOps Camp 2017 NYC Local Development using Vagrant by Anthony Alvarez