diff --git a/vagrant/debian-8-x64/Vagrantfile b/vagrant/debian-8-x64/Vagrantfile new file mode 100644 index 00000000..b9314229 --- /dev/null +++ b/vagrant/debian-8-x64/Vagrantfile @@ -0,0 +1,21 @@ +# -*- mode: ruby -*- +# vi: set ft=ruby : + +Vagrant.configure("2") do |config| + + # Set which Vagrant "box" (base image) to use, and tell it how to set up the + # VM, packages to install, etc. + config.vm.box = "debian/jessie64" + config.vm.provision :shell, path: "bootstrap.sh" + + # Additional parameters for the VM + config.vm.provider "virtualbox" do |vb| + vb.memory = 2048 + vb.cpus = 2 + end + + # Share the Phoenix/dist folder so the VM can get the source tarball and has + # a place to put the build results. + config.vm.synced_folder "../../dist", "/home/vagrant/dist" + +end diff --git a/vagrant/debian-8-x64/bootstrap.sh b/vagrant/debian-8-x64/bootstrap.sh new file mode 100644 index 00000000..e6979110 --- /dev/null +++ b/vagrant/debian-8-x64/bootstrap.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +# Set up and update package repos +apt-get update + +# Install necessary development and other packages +apt-get install -y build-essential dpkg-dev +apt-get install -y libgtk2.0-dev libgtk-3-dev + +apt-get install -y libwebkitgtk-dev libjpeg-dev libtiff-dev \ + libsdl1.2-dev libgstreamer-plugins-base0.10-dev \ + libnotify-dev freeglut3 freeglut3-dev + +# Install all available Python packages and their dev packages +apt-get install -y python2.7 python2.7-dev libpython2.7-dev python-virtualenv +apt-get install -y python3.4 python3.4-dev libpython3.4-dev python3.4-venv +#apt-get install -y python3.5 python3.5-dev libpython3.5-dev python3.5-venv + +# Set up virtual environments for each Python where the Phoenix builds will be done +virtualenv --python=python2.7 Py27 +pyvenv-3.4 Py34 +#pyvenv-3.5 Py35 +