Skip to content

Commit 73daf1c

Browse files
committed
Add Basic Vagrant box for dev.
1 parent 3481b14 commit 73daf1c

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

Vagrantfile

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# -*- mode: ruby -*-
2+
# vi: set ft=ruby :
3+
4+
Vagrant.configure(2) do |config|
5+
6+
config.vm.box = "boxcutter/ubuntu1604"
7+
8+
config.vm.define "app" do |normal|
9+
10+
config.vm.synced_folder ".", "/vagrant", :owner=> 'vagrant', :group=>'users', :mount_options => ['dmode=777', 'fmode=777']
11+
12+
config.vm.provider "virtualbox" do |vb|
13+
# Display the VirtualBox GUI when booting the machine
14+
vb.gui = false
15+
16+
# Customize the amount of memory on the VM:
17+
vb.memory = "512"
18+
end
19+
20+
config.vm.provision :shell, path: "vagrant/bootstrap.sh"
21+
22+
end
23+
24+
end

vagrant/bootstrap.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env bash
2+
3+
4+
sudo apt-get update
5+
sudo apt-get install -y php-cli php-mbstring php-intl composer zip php-zip php-xml
6+
7+
echo "cd /vagrant" >> /home/vagrant/.bashrc
8+
echo "alias test=\"/vagrant/vendor/bin/phpunit -c /vagrant/\"" >> /home/vagrant/.bashrc

0 commit comments

Comments
 (0)