-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
50 lines (45 loc) · 1.81 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
39
40
41
42
43
44
45
46
47
48
49
50
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|
# For a complete reference, please see the online documentation at
# https://docs.vagrantup.com.
# https://developer.hashicorp.com/vagrant/docs/vagrantfile/machine_settings
# You can search for boxes at https://vagrantcloud.com/search.
config.vm.box = "mimesis/mimesis"
config.vm.box_check_update = true
# config.vm.disk :disk, size: "128GB", primary: true
config.vm.hostname = "mimesis"
config.vm.define "mimesis" do |_|
end
# Provider-specific configuration
# https://developer.hashicorp.com/vagrant/docs/providers/virtualbox/configuration
config.vm.provider "virtualbox" do |vb|
vb.gui = false # headless
vb.name = "mimesis"
vb.memory = "16384" # MiB
# https://www.virtualbox.org/manual/ch08.html#vboxmanage-modifyvm
vb.customize ["modifyvm", :id,
"--cpus", "16",
"--hwvirtex", "on",
"--nested-hw-virt", "on",
"--firmware", "efi64",
"--vm-process-priority", "high",
"--vrde", "off", # disable vbox remote desktop extension
"--audio-enabled", "off",
]
end
# Disable directory sharing. We want to have a separate copy in the VM.
config.vm.synced_folder ".", "/vagrant", disabled: true
# Enable provisioning with a shell script.
# https://developer.hashicorp.com/vagrant/docs/provisioning
config.vm.provision "update", type: "shell", privileged: false, inline: <<-SCRIPT
set -ex
cd "$HOME/mimesis"
git pull
./depends/setup.sh
SCRIPT
end