Add Vagrant config and provisioning for Fedora 24

This commit is contained in:
Robin Dunn
2016-11-30 13:56:04 -08:00
parent da38a74b46
commit 7224b676f0
2 changed files with 52 additions and 0 deletions

23
vagrant/fedora-24-x64/Vagrantfile vendored Normal file
View File

@@ -0,0 +1,23 @@
# -*- 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 = "fedora/24-cloud-base"
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
# config.vbguest.auto_update = false

View File

@@ -0,0 +1,29 @@
#!/bin/bash
# Set up and update package repos
dnf -y update
dnf -y install yum-utils
# Install necessary development and other packages
dnf -y group install "Development Tools"
dnf -y install gtk2 gtk2-devel gtk3 gtk3-devel \
webkitgtk webkitgtk-devel webkitgtk3 webkitgtk3-devel \
libjpeg-turbo-devel libpng-devel libtiff-devel \
SDL SDL-devel gstreamer gstreamer-devel gstreamer-plugins-base-devel \
freeglut freeglut-devel libnotify libnotify-devel
# Install all available Python packages and their dev packages
dnf -y install python python-tools python-devel python-virtualenv
#dnf -y install python34 python34-tools python34-devel
dnf -y install python3 python3-tools python3-devel
# 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