Add Vagrant config and provisioning for Ubuntu 14.04 and 16.04

This commit is contained in:
Robin Dunn
2016-11-30 13:54:40 -08:00
parent a3ed683e7f
commit 7de0adb9f1
4 changed files with 90 additions and 0 deletions

21
vagrant/ubuntu-1404-x64/Vagrantfile vendored Normal file
View File

@@ -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 = "ubuntu/trusty64"
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

View File

@@ -0,0 +1,24 @@
#!/bin/bash
# Set up and update package repos
add-apt-repository ppa:fkrull/deadsnakes
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

21
vagrant/ubuntu-1604-x64/Vagrantfile vendored Normal file
View File

@@ -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 = "ubuntu/xenial64"
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

View File

@@ -0,0 +1,24 @@
#!/bin/bash
# Set up and update package repos
#add-apt-repository ppa:fkrull/deadsnakes
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