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
|
|
|
|
2020-02-04 16:53:46 +01:00
|
|
|
Vagrant.configure("2") do |config|
|
|
|
|
config.vm.define "RIOT-VM"
|
|
|
|
config.vm.box = "RIOT/ubuntu1804"
|
|
|
|
config.ssh.username = "user"
|
|
|
|
config.vm.synced_folder RIOTBASE, "/home/user/RIOT"
|
|
|
|
|
|
|
|
if File.exists?(File.join(Dir.home, ".gitconfig"))
|
|
|
|
config.vm.provision "file", source: File.join(Dir.home, ".gitconfig"), destination: ".gitconfig"
|
|
|
|
end
|
|
|
|
|
|
|
|
config.vm.provider :virtualbox do |v, override|
|
|
|
|
v.customize [ "guestproperty", "set", :id, "/VirtualBox/GuestAdd/VBoxService/--timesync-set-on-restore", 0]
|
|
|
|
|
|
|
|
# additional USB passthrough entries
|
|
|
|
# v.customize ['usbfilter', 'add', '0', '--target', :id, '--name', '<custom_name>', '--vendorid', '<vID>', '--productid', '<pID>']
|
|
|
|
end
|
2015-11-28 15:15:34 +01:00
|
|
|
end
|