1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/Vagrantfile

27 lines
828 B
Ruby
Raw Normal View History

2015-11-28 15:15:34 +01:00
# -*- mode: ruby -*-
# vi: set ft=ruby :
require 'fileutils'
RIOTBASE ||= "./"
2015-11-28 15:15:34 +01:00
Vagrant.configure(2) do |config|
# For a complete reference, please see the online documentation at https://docs.vagrantup.com.
config.vm.box = "RIOT/ubuntu1604"
2015-11-28 15:15:34 +01:00
config.vm.provider "virtualbox" do |vb|
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
config.vm.synced_folder RIOTBASE, "/home/vagrant/RIOT"
if File.exists?(File.join(Dir.home, ".gitconfig"))
config.vm.provision "file", source: File.join(Dir.home, ".gitconfig"), destination: ".gitconfig"
end
# use a custom provisioning script
# config.vm.provision "shell", path: "dist/tools/vagrant/bootstrap.sh"
2015-11-28 15:15:34 +01:00
end