|
| 1 | +# -*- mode: ruby -*- |
| 2 | +# vi: set ft=ruby : |
| 3 | + |
| 4 | +Vagrant.configure("2") do |config| |
| 5 | + # The Vagrant documentation recommends the bento images instead of ubuntu (more providers, open source) |
| 6 | + config.vm.box = "bento/ubuntu-20.04" |
| 7 | + |
| 8 | + # We don't want the box to automatically update every time it starts. |
| 9 | + # We can instead handle updates internally, without destroying the machine. |
| 10 | + config.vm.box_check_update = false |
| 11 | + |
| 12 | + # Share an additional folder to the guest VM. The first argument is |
| 13 | + # the path on the host to the actual folder. The second argument is |
| 14 | + # the path on the guest to mount the folder. And the optional third |
| 15 | + # argument is a set of non-required options. |
| 16 | + # config.vm.synced_folder "../data", "/vagrant_data" |
| 17 | + |
| 18 | + config.vm.provider "virtualbox" do |vb| |
| 19 | + # Name of the machine |
| 20 | + vb.name = "preCICE-Ubuntu-20.04" |
| 21 | + # Display the VirtualBox GUI when booting the machine |
| 22 | + vb.gui = true |
| 23 | + # Number of cores |
| 24 | + vb.cpus = 2 |
| 25 | + # Customize the amount of memory on the VM: |
| 26 | + vb.memory = "2048" |
| 27 | + # Workaround to fix extremely long boot time |
| 28 | + # See https://bugs.launchpad.net/cloud-images/+bug/1874453 (#36) |
| 29 | + #vb.customize [ "modifyvm", :id, "--uartmode1", "file", File::NULL ] |
| 30 | + end |
| 31 | + |
| 32 | + # Install a desktop environment and basic tools |
| 33 | + config.vm.provision "shell", path: "install-basics.sh" |
| 34 | + |
| 35 | + # Install common development tools |
| 36 | + config.vm.provision "shell", path: "install-devel.sh" |
| 37 | + |
| 38 | + # Install preCICE |
| 39 | + config.vm.provision "shell", path: "install-precice.sh" |
| 40 | + |
| 41 | + # Install solvers, adapters, and related tools |
| 42 | + config.vm.provision "shell", path: "install-openfoam.sh" |
| 43 | + config.vm.provision "shell", path: "install-paraview.sh" |
| 44 | +end |
0 commit comments