-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathVagrantfile
40 lines (32 loc) · 1.36 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
Vagrant.configure("2") do |config|
config.vm.box = "generic/ubuntu2004"
config.vm.hostname = "script-languages"
config.vm.network :forwarded_port, guest: 8888, host: 8888
config.vm.network :forwarded_port, guest: 6666, host: 6666
config.vm.synced_folder ".", "/home/vagrant/vagrant", type: "rsync", rsync__exclude: ".git/"
config.vm.synced_folder "..", "/home/vagrant/script-languages-release", type: "rsync", rsync__exclude: [".git/",".build_output"], rsync__args: ["--verbose", "--archive", "-z", "--links", "--delete"], rsync__verbose: true
config.vm.provider :libvirt do |v|
v.qemu_use_session = true
v.cpus = 2
v.memory = 6000
v.machine_virtual_size = 100 # This only increases the size of the image, it can decrease it, if the box is already larger
v.random_hostname = true
v.default_prefix = config.vm.hostname + "_"
end
config.trigger.before [:provision] do |trigger|
trigger.run = { inline: "vagrant rsync"}
end
config.vm.provision "shell" do |s|
s.path="provisioning/resize-disk.sh" # Needed, if you want use larger disks than the box provides
end
config.vm.provision "shell" do |s|
s.path="provisioning/dns.sh"
end
config.vm.provision "shell" do |s|
s.path="provisioning/install.sh"
end
config.vm.provision "shell" do |s|
s.privileged=false
s.path="provisioning/install_poetry.sh"
end
end