mirror of
https://git.suyu.dev/suyu/Yucom.git
synced 2026-01-01 20:24:25 +01:00
Vagrantfile: Detect host resources automatically
This commit is contained in:
parent
99f9e48f19
commit
4c0bfb80c1
1 changed files with 5 additions and 5 deletions
10
Vagrantfile
vendored
10
Vagrantfile
vendored
|
|
@ -6,11 +6,11 @@
|
||||||
Vagrant.configure(2) do |config|
|
Vagrant.configure(2) do |config|
|
||||||
config.vm.box = "generic/debian9"
|
config.vm.box = "generic/debian9"
|
||||||
|
|
||||||
# Uncomment to increase guest resources from the default
|
config.vm.provider "virtualbox" do |v|
|
||||||
#config.vm.provider "virtualbox" do |v|
|
v.cpus = `nproc`.to_i
|
||||||
# v.memory = 2048
|
# meminfo shows KB and we need to convert to MB
|
||||||
# v.cpus = 4
|
v.memory = `grep 'MemTotal' /proc/meminfo | sed -e 's/MemTotal://' -e 's/ kB//'`.to_i / 1024 / 2
|
||||||
#end
|
end
|
||||||
|
|
||||||
config.vm.synced_folder ".", "/home/vagrant/proton", type: "rsync", rsync__exclude: [".git/", "/output/"], rsync__args: ["--verbose", "--archive", "-z", "--links", "--update"]
|
config.vm.synced_folder ".", "/home/vagrant/proton", type: "rsync", rsync__exclude: [".git/", "/output/"], rsync__args: ["--verbose", "--archive", "-z", "--links", "--update"]
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue