eBooru/Vagrantfile
Earlopain 51e3d68ab8 [Vagrant] Increase RAM
The machine was swapping quite a bit, 600mb just on startup alone
2021-07-23 16:19:38 +02:00

37 lines
1011 B
Ruby

Vagrant.configure('2') do |config|
config.hostmanager.enabled = true
config.hostmanager.manage_host = true
config.vm.box = 'generic/ubuntu2004'
config.vm.provider 'virtualbox' do |v|
v.cpus = 2
v.memory = 2048
if Vagrant::Util::Platform.windows?
v.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate//vagrant", "1"]
end
if Vagrant::Util::Platform.windows?
config.vm.synced_folder '.', '/vagrant', type: 'virtualbox'
else
config.vm.synced_folder '.', '/vagrant', type: 'nfs'
end
end
# config.vm.provider 'hyper-v' do |v|
# v.cpus = 2
# v.memory = 1280
# config.vm.synced_folder '.', '/vagrant', type: 'rsync'
# end
VAGRANT_COMMAND = ARGV[0]
config.ssh.username = 'danbooru' if VAGRANT_COMMAND == 'ssh'
config.vm.define 'default' do |node|
node.vm.hostname = 'e621.local'
node.vm.network :private_network, ip: '192.168.64.78'
end
config.vm.provision 'shell', path: 'vagrant/install.sh'
end