2015-11-28 15:15:34 +01:00
|
|
|
# -*- mode: ruby -*-
|
|
|
|
# vi: set ft=ruby :
|
|
|
|
|
2016-09-16 17:15:24 +02:00
|
|
|
require 'fileutils'
|
|
|
|
|
2016-09-20 13:31:06 +02:00
|
|
|
RIOTBASE ||= "./"
|
2015-11-28 15:15:34 +01:00
|
|
|
|
2016-09-20 13:31:06 +02:00
|
|
|
Vagrant.configure(2) do |config|
|
|
|
|
# For a complete reference, please see the online documentation at https://docs.vagrantup.com.
|
2016-09-16 13:48:21 +02:00
|
|
|
|
2016-09-06 15:10:49 +02:00
|
|
|
config.vm.box = "RIOT/ubuntu1604"
|
2015-11-28 15:15:34 +01:00
|
|
|
|
|
|
|
config.vm.provider "virtualbox" do |vb|
|
2016-09-06 15:10:49 +02:00
|
|
|
vb.name = "RIOT-VM"
|
|
|
|
# additional USB passthrough entries
|
|
|
|
# vb.customize ['usbfilter', 'add', '0', '--target', :id, '--name', '<custom_name>', '--vendorid', '<vID>', '--productid', '<pID>']
|
2015-11-28 15:15:34 +01:00
|
|
|
end
|
|
|
|
|
2016-09-06 15:10:49 +02:00
|
|
|
config.vm.synced_folder RIOTBASE, "/home/vagrant/RIOT"
|
|
|
|
|
2016-09-16 17:15:24 +02:00
|
|
|
if File.exists?(File.join(Dir.home, ".gitconfig"))
|
|
|
|
config.vm.provision "file", source: File.join(Dir.home, ".gitconfig"), destination: ".gitconfig"
|
|
|
|
end
|
2016-09-06 15:10:49 +02:00
|
|
|
# use a custom provisioning script
|
|
|
|
# config.vm.provision "shell", path: "dist/tools/vagrant/bootstrap.sh"
|
2015-11-28 15:15:34 +01:00
|
|
|
end
|