From 1e022c2f573a9b9d823d485f12603100f080eb51 Mon Sep 17 00:00:00 2001 From: HelioGuilherme66 Date: Sun, 17 Jun 2018 17:07:27 +0100 Subject: [PATCH] Vagrant setup for Fedora 28 --- vagrant/fedora-28/Vagrantfile | 24 ++++++++++++++++++++++++ vagrant/fedora-28/bootstrap.sh | 31 +++++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 vagrant/fedora-28/Vagrantfile create mode 100644 vagrant/fedora-28/bootstrap.sh diff --git a/vagrant/fedora-28/Vagrantfile b/vagrant/fedora-28/Vagrantfile new file mode 100644 index 00000000..aec7a43d --- /dev/null +++ b/vagrant/fedora-28/Vagrantfile @@ -0,0 +1,24 @@ +# -*- 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/28-cloud-base" + config.vm.provision :shell, path: "bootstrap.sh" + + # Additional parameters for the VM + config.vm.provider "virtualbox" do |vb| + vb.memory = 4096 + vb.cpus = 4 + 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" + + # And share a folder with the build script + config.vm.synced_folder "../scripts", "/home/vagrant/scripts" + +end diff --git a/vagrant/fedora-28/bootstrap.sh b/vagrant/fedora-28/bootstrap.sh new file mode 100644 index 00000000..dcbb75fc --- /dev/null +++ b/vagrant/fedora-28/bootstrap.sh @@ -0,0 +1,31 @@ +#!/bin/bash + +# Set up and update package repos +dnf -y update +dnf -y install yum-utils + + +# Install necessary development tools, libs, etc. +dnf -y group install "Development Tools" +dnf -y install gcc-c++ + +dnf -y install gtk2 gtk2-devel gtk3 gtk3-devel \ + webkitgtk4 webkitgtk4-devel \ + libjpeg-turbo-devel libpng-devel libtiff-devel \ + SDL SDL-devel gstreamer gstreamer-devel gstreamer-plugins-base-devel \ + freeglut freeglut-devel libnotify libnotify-devel libSM-devel \ + libXtst-devel + + +# Install all available Python packages and their dev packages +dnf -y install python python-tools python-devel python2-virtualenv +dnf -y install python3 python3-tools python3-devel +#dnf -y install python35 + +# Set up virtual environments for each Python where the Phoenix builds will be +# done. Set them to the vagrant user so the venv's can be updated by pip later. +mkdir venvs +virtualenv --python=python2.7 venvs/Py27 +#python3.5 -m venv venvs/Py35 +python3.6 -m venv venvs/Py36 +chown -R vagrant:vagrant venvs