-
Notifications
You must be signed in to change notification settings - Fork 14
/
Vagrantfile
38 lines (30 loc) · 1.68 KB
/
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
28
29
30
31
32
33
34
35
36
37
38
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "NottingHack/hms2"
config.vm.box_version = ">=1.6.0"
config.vm.hostname = "hmsdev.nottingtest.org.uk"
config.vm.provider :virtualbox do |vb|
vb.customize ['modifyvm', :id, '--memory', '4096']
vb.customize ['modifyvm', :id, '--natdnsproxy1', 'on']
vb.customize ['modifyvm', :id, '--natdnshostresolver1', 'on']
vb.customize ['guestproperty', 'set', :id, '/VirtualBox/GuestAdd/VBoxService/--timesync-set-threshold', 10000 ]
end
config.vm.provision :shell, path: "dev/vagrant-config/scripts/nginx.sh"
config.vm.provision :shell, path: "dev/vagrant-config/scripts/laravel.sh", privileged: false
config.vm.provision :shell, path: "dev/vagrant-config/scripts/mix.sh", privileged: false
config.vm.provision :shell, path: "dev/vagrant-config/scripts/labelprinter.sh"
config.vm.provision :shell, path: "dev/vagrant-config/scripts/laravel-queue.sh"
config.vm.provision :shell, path: "dev/vagrant-config/scripts/finish.sh"
config.vm.network "private_network", ip: "192.168.25.35"
config.trigger.after :up, :resume, :reload do |trigger|
trigger.info = "Restaring Nginx & PHP"
trigger.run_remote = {inline: "sudo systemctl restart nginx php* soketi horizon"}
end
end