forked from PhpUnitsOfMeasure/php-units-of-measure
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathVagrantfile
27 lines (21 loc) · 784 Bytes
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
# Disable the default /vagrant synced folder and replace it
config.vm.synced_folder ".", "/vagrant", disabled: true
config.vm.synced_folder ".", "/project"
# Virtualbox, for all instances
config.vm.provider "virtualbox" do |vb, override|
override.vm.box = "ubuntu/bionic64"
vb.memory = "1024" # in MB
override.vm.network "private_network", type: "dhcp"
override.ssh.forward_agent = true
end
config.vm.provision "shell", inline: $script
end
$script = <<SCRIPT
apt-add-repository -y ppa:ondrej/php5-5.6
apt-get update
apt-get install -y php5-cli php5-xdebug
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin
SCRIPT