Skip to content

Instantly share code, notes, and snippets.

@ciaranmcnulty
Created January 19, 2015 18:08
Show Gist options
  • Save ciaranmcnulty/0a8699b5a792f11eb34d to your computer and use it in GitHub Desktop.
Save ciaranmcnulty/0a8699b5a792f11eb34d to your computer and use it in GitHub Desktop.
hhvm-virtualbox
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "precise64"
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
config.vm.provider :virtualbox do |vb|
vb.name = "HHVM"
vb.customize ["modifyvm", :id, "--memory", "2048"]
vb.customize ["modifyvm", :id, "--ostype", "Ubuntu_64"]
end
config.vm.provision "shell", inline: <<-shell
apt-get update
apt-get install python-software-properties -y --force-yes
apt-get install expect -y --force-yes
add-apt-repository ppa:mapnik/boost
wget -O - http://dl.hhvm.com/conf/hhvm.gpg.key | sudo apt-key add -
echo deb http://dl.hhvm.com/ubuntu precise main | sudo tee /etc/apt/sources.list.d/hhvm.list
apt-get update
apt-get install hhvm-nightly -y --force-yes
sudo chown vagrant /etc/hhvm
shell
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment