mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-13 08:40:26 +01:00
Alexandre Abadie
562cc9007c
This change is also a complete refactoring of the generation of the vagrant image
25 lines
810 B
Ruby
25 lines
810 B
Ruby
# -*- mode: ruby -*-
|
|
# vi: set ft=ruby :
|
|
|
|
require 'fileutils'
|
|
|
|
RIOTBASE ||= "./"
|
|
|
|
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
|
|
end
|