-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
27 lines (20 loc) · 952 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
Vagrant.configure(2) do |config|
config.vm.network :private_network, ip: "192.168.22.99"
config.vm.synced_folder ".", "/vagrant", type: "nfs", nfs_udp: false, mount_options: ["actimeo=2", "nolock"]
config.vm.hostname = "php73"
config.vm.box = "debian/stretch64"
config.ssh.forward_agent = true
config.vm.provider "virtualbox" do |vb|
vb.memory = "2048"
end
# Provision box with php and composer
config.vm.provision "shell", inline: <<-SHELL
apt-get update
apt-get install -y ca-certificates apt-transport-https git zip vim curl
wget -q https://packages.sury.org/php/apt.gpg -O- | apt-key add -
echo "deb https://packages.sury.org/php/ stretch main" | tee /etc/apt/sources.list.d/php.list
apt-get update
apt-get install -y php7.3-cli php7.3-xml php7.3-mbstring php7.3-dev php-pear
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
SHELL
end