Created
December 10, 2013 20:44
-
-
Save yzen/7899137 to your computer and use it in GitHub Desktop.
Vagrantfile for fedora-19 and GPII
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# To use this script and prepare your build/test environment, run the following | |
# command in the same directory as the Vagrantfile. | |
# GPII_PATH={path to your gpii directory that contains or will contain cloned | |
# linux repository} vagrant up | |
VAGRANTFILE_API_VERSION = "2" | |
# This script will be run on the first start and it will set up the build | |
# environment. | |
# All you need to do afterwards is: | |
# * vagrant ssh | |
# * cd gpii | |
# * [git clone git://github.com/GPII/linux.git] | |
# * cd linux | |
# * ./build.sh | |
# * ./start.sh | |
$bootstrap = <<SCRIPT | |
# Installing all build prerequisites. | |
yum install -y kernel-devel kernel-headers dkms gcc gcc-c++ git openssl-devel glib-devel glib2-devel gtk3-devel pcsc-lite-devel pcsc-lite pcsc-perl nodejs node-gyp npm | |
SCRIPT | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.box = "fedora-19" | |
config.vm.provision "shell", inline: $bootstrap | |
config.vm.box_url = "https://dl.dropboxusercontent.com/u/86066173/fedora-19.box" | |
config.vm.network "private_network", ip: "10.13.13.2" | |
config.vm.synced_folder ENV['GPII_PATH'], "/home/vagrant/gpii", nfs: true | |
config.vm.provider "virtualbox" do |v| | |
v.gui = true | |
v.memory = 1024 | |
v.customize ["modifyvm", :id, "--usb", "on"] | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment