Skip to content

Instantly share code, notes, and snippets.

@pauloelr
Forked from rogeriopradoj/Vagrantfile
Created July 4, 2014 19:29
Show Gist options
  • Save pauloelr/1456e1b54161431d94fe to your computer and use it in GitHub Desktop.
Save pauloelr/1456e1b54161431d94fe to your computer and use it in GitHub Desktop.
Vagrantfile for PHPSP Test Fest
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
if Vagrant.has_plugin?("vagrant-cachier")
config.cache.scope = :box
else
puts "_Info_: Plugin '''vagrant-cachier''' is not installed."
end
config.vm.box = "ubuntu/trusty64"
config.vm.network "forwarded_port", guest: 8042, host: 8042
config.vm.provision "shell" do |s|
s.inline = <<SCRIPT
echo "************************"
echo "Updating system packages"
echo "************************"
sudo apt-get -y update
sudo apt-get -y upgrade
echo "******************************"
echo "Installing supporting packages"
echo "******************************"
sudo apt-get -y install build-essential wget curl git vim
echo "****************************"
echo "Installing php5 dev packages"
echo "****************************"
sudo apt-get -y install php5-dev php-pear
SCRIPT
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment