diff --git a/Tools/Vagrant/Vagrantfile b/Tools/Vagrant/Vagrantfile new file mode 100644 index 000000000..40665a8c8 --- /dev/null +++ b/Tools/Vagrant/Vagrantfile @@ -0,0 +1,25 @@ +# -*- mode: ruby -*- +# vi: set ft=ruby : + +# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! +VAGRANTFILE_API_VERSION = '2' + +Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| + config.vm.box = 'ubuntu/trusty32' + + config.vm.provider 'virtualbox' do |vb| + vb.gui = true + vb.memory = 1024 + end + + config.vm.synced_folder '../../', '/torque' + + config.vm.provision :shell, path: 'provision.sh' + + # config.vm.network 'forwarded_port', guest: 80, host: 8080 + + # More info at http://fgrehm.viewdocs.io/vagrant-cachier/usage + if Vagrant.has_plugin?("vagrant-cachier") + config.cache.scope = :box + end +end diff --git a/Tools/Vagrant/provision.sh b/Tools/Vagrant/provision.sh new file mode 100644 index 000000000..016ee8a93 --- /dev/null +++ b/Tools/Vagrant/provision.sh @@ -0,0 +1,38 @@ +# Make sure package listings are up to date. +apt-get update -y + +# Install Unity desktop for GUI purposes. +apt-get install -y --no-install-recommends ubuntu-desktop + +# Install software for development. +apt-get install \ + terminal \ + git \ + -y + +# Install Torque-specific binaries. +sudo apt-get install \ + build-essential \ + nasm \ + xorg-dev \ + ninja-build \ + gcc-multilib \ + g++-multilib \ + cmake \ + cmake-qt-gui \ + --ignore-missing -y + +# Install libraries. +sudo apt-get install \ + libogg-dev \ + libxft-dev \ + libx11-dev \ + libxxf86vm-dev \ + libopenal-dev \ + libfreetype6-dev \ + libxcursor-dev \ + libxinerama-dev \ + libxi-dev \ + libxrandr-dev \ + libxss-dev \ + --ignore-missing -y