-
Notifications
You must be signed in to change notification settings - Fork 61
/
Vagrantfile
34 lines (27 loc) · 933 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
28
29
30
31
32
33
34
# -*- mode: ruby -*-
# vi: set ft=ruby :
#BOX = "bionic-canonical-64"
#BOX_URL = "https://cloud-images.ubuntu.com/bionic/current/bionic-server-cloudimg-amd64-vagrant.box"
BOX = "debian/stretch64"
Vagrant.configure("2") do |config|
config.vm.box = BOX
#config.vm.box_url = BOX_URL
#config.disksize.size = '20GB'
config.vm.network "forwarded_port", guest: 80, host: 8080 # nginx fastcgi
config.vm.post_up_message = "Plugin site is available on http://localhost:8080"
config.vm.provider "virtualbox" do |v|
#v.gui = true
v.memory = 8192
v.cpus = 3
v.customize ["modifyvm", :id, "--vram", "128"]
end
# Install the required software
config.vm.provision "shell",
path: "vagrant_assets/provision_setup.sh",
args: ENV['SHELL_ARGS']
# Run every time the VM starts
config.vm.provision "shell",
path: "vagrant_assets/provision_job.sh",
args: ENV['SHELL_ARGS'],
run: "always"
end