Madison PHP Conference 2016 -- Dev Environments with Vagrant
Joe • September 5, 2016
conferences devops linux speaking ubuntu vagrantI'm excited to be going back to Madison PHP Conference this year to give a tutorial "Create Your Own Local Development Environments With Vagrant".
If you are planning on coming to this tutorial there are a few things you'll want to have pre-installed to make the most of the tutorial.
Operating System Support:
If you want to follow along and run all of the examples you will need to bring a laptop running a current version of Linux or Mac OS. Unfortunately Windows is unable to run Ansible so you will not be able to run any of the Ansible Playbooks.
Note: despite Windows 10 Anniversary updating bringing BASH support to Windows, Ansible is still not yet supported.
Applications Installed:
Getting Started, Initial Downloads, and Set Up:
Install some vagrant base boxes:
Ubuntu 14.04.x
vagrant box add ubuntu/trusty64
PuPHPet Ubuntu 14.04 base
vagrant box add puphpet/ubuntu1404-x64
Laravel Homestead
vagrant box add laravel/homestead
Testing Vagrant:
- Create a new folder to hold your vagrant test
- Change directory into that folder
- Create a new Vagrant environment
- Start the Vagrant
mkdir test-vagrant
cd test-vagrant
vagrant init ubuntu/trusty64
You should see the following output:
A `Vagrantfile` has been placed in this directory. You are now
ready to `vagrant up` your first virtual environment! Please read
the comments in the Vagrantfile as well as documentation on
`vagrantup.com` for more information on using Vagrant.
Screenshot:
Now we can start the vagrant
vagrant up
You should see the following output:
Once you have similar output to the above you can go a head and destroy the vagrant box to free up system resources. Your output may not exactly match the example. If there are any errors please feel free to leave me a comment below.
Destroy the vagrant machine:
Thanks for reading, I look forward to seeing you at Madison PHP Conference, if you have any problems or errors as you worked through this please feel free to leave me a comment below.
As Seen On
Recent Posts
- PHP to Rust via Copilot
- Compiling Python 3.12 from Source Tarball on Linux
- HTML Form Processing with PHP - php[architect] Magazine August 2014
- The Workshop: Local Dev with Lando - php[architect] Magazine November 2022
- Getting back into the swing of things
- All Posts
Categories
- ansible
- apache
- applesilicon
- aws
- blackwidow
- cakephp
- community
- composer
- conferences
- copilot
- data-storage
- day-job
- devops
- docker
- fpv
- general
- github
- givecamp
- homestead
- jigsaw
- joindin
- keyboard
- laravel
- learning
- linux
- maker
- mamp
- mentoring
- music
- nonprofit
- opensource
- packages
- php
- phparch
- projects
- provisioning
- python
- razer
- rust
- s3
- security
- slimphp
- speaking
- static-sites
- storage
- testing
- tiny-whoop
- today-i-learned
- training
- ubuntu
- vagrant
- version-control
- windows
- writing
- wsl
- wsl2
- zend-zray