-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
36 lines (30 loc) · 1.25 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Function to check whether VM was already provisioned
# https://stackoverflow.com/a/38203497/930271
def provisioned?(vm_name='default', provider='virtualbox')
File.exist?(".vagrant/machines/#{vm_name}/#{provider}/action_provision")
end
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/jammy64"
config.vm.box_version = "20230110.0.0"
config.vm.box_check_update = false
# https://stackoverflow.com/questions/49822594/vagrant-how-to-specify-the-disk-size
# config.disksize.size = "100GB"
if Vagrant.has_plugin?("vagrant-vbguest")
# Disable it if problems with shared folders or guest additions appears
# or if you want to speed up `vagrant up` a bit
config.vbguest.auto_update = true
end
# config.vm.network "forwarded_port", guest: 80, host: 8080
config.vm.network "forwarded_port", guest: 5432, host: 5432
# config.vm.network "public_network", ip: "192.168.0.99"
config.vm.provider "virtualbox" do |vb|
# vb.name = "sepraps"
vb.gui = false
vb.memory = "2048"
vb.cpus = 2
vb.customize ["modifyvm", :id, "--cpuexecutioncap", "85"]
end
config.vm.provision "shell", path:"server/bootstrap.sh", args: ["DEV"]
end