inveniosoftware / training

Invenio v3 Training Material
https://training.readthedocs.io
MIT License
39 stars 45 forks source link

Extend vagrant disk size to 20GB (fixes #91) #92

Closed avivace closed 2 years ago

avivace commented 4 years ago

Sets the VM to have a 20GB volume (instead of the 10 GB one in case the virtualisation provisioner is VirtualBox). Fixes #91 .

Requires an additional Vagrant plugin to reach a consistent behaviour on the disk size of the created VM.

Vagrantfile now checks if this plugin installed and suggests how to do that in case it's not found.

The value 20 GB is based on the fact that after running "docker-compose -f docker-compose.full.yml up -d" the /vagrant mount point reaches ~14 GB so there's still some wiggle room for other stuff. 15 GB could be good too.

vagrant@ubuntu-bionic:~/src/my-site$ df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            2.0G     0  2.0G   0% /dev
tmpfs           395M  1.4M  394M   1% /run
/dev/sda1        49G  9.4G   39G  20% /
tmpfs           2.0G     0  2.0G   0% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           2.0G     0  2.0G   0% /sys/fs/cgroup
vagrant         176G  163G   13G  93% /vagrant
tmpfs           395M     0  395M   0% /run/user/1000
vagrant@ubuntu-bionic:~/src/my-site$