[e84ccf5] | 1 | # -*- mode: ruby -*- |
---|
| 2 | # vi: set ft=ruby : |
---|
| 3 | |
---|
| 4 | HOST_NAME = "Ub1404-SasViewQt-Ver2" |
---|
| 5 | |
---|
| 6 | # All Vagrant configuration is done below. The "2" in Vagrant.configure |
---|
| 7 | # configures the configuration version (we support older styles for |
---|
| 8 | # backwards compatibility). Please don't change it unless you know what |
---|
| 9 | # you're doing. |
---|
| 10 | Vagrant.configure(2) do |config| |
---|
| 11 | # Ubuntu 14.04 |
---|
| 12 | config.vm.box = "ubuntu/trusty64" |
---|
| 13 | config.vm.define HOST_NAME do |h| |
---|
| 14 | end |
---|
| 15 | |
---|
| 16 | # This is the hostname that the virtual machine uses internally. |
---|
| 17 | config.vm.hostname = HOST_NAME |
---|
| 18 | |
---|
| 19 | |
---|
| 20 | config.vm.provider "virtualbox" do |vb| |
---|
| 21 | # Display the VirtualBox GUI when booting the machine |
---|
| 22 | vb.name = HOST_NAME |
---|
| 23 | vb.gui = true |
---|
| 24 | vb.customize ["modifyvm", :id, "--memory", "8192"] |
---|
| 25 | vb.customize ["modifyvm", :id, "--cpus", "4"] |
---|
| 26 | vb.customize ["modifyvm", :id, "--graphicscontroller", "vboxvga"] |
---|
| 27 | vb.customize ["modifyvm", :id, "--accelerate3d", "on"] |
---|
| 28 | vb.customize ["modifyvm", :id, "--ioapic", "on"] |
---|
| 29 | vb.customize ["modifyvm", :id, "--vram", "32"] |
---|
| 30 | vb.customize ["modifyvm", :id, "--hwvirtex", "on"] |
---|
| 31 | end |
---|
| 32 | |
---|
| 33 | |
---|
| 34 | # Install ubuntu-desktop and virtualbox additions and all of the rest |
---|
| 35 | # Take one provision file at the time. |
---|
| 36 | # Do the loop: |
---|
| 37 | # terminal: vagrant up --provision |
---|
| 38 | # Check install packages |
---|
| 39 | # terminal: vagrant halt |
---|
| 40 | # Comment in/out the appropriate lines |
---|
| 41 | |
---|
| 42 | # 1. |
---|
| 43 | #config.vm.provision "shell", path: "provision/bootstrap.sh" |
---|
| 44 | # 2. |
---|
| 45 | #config.vm.provision "shell", path: "provision/developer.sh" |
---|
| 46 | # 3. |
---|
| 47 | config.vm.provision "shell", path: "provision/miniconda.sh" |
---|
| 48 | end |
---|