4 # All Vagrant configuration is done below. The "2" in Vagrant.configure
5 # configures the configuration version (we support older styles for
6 # backwards compatibility). Please don't change it unless you know what
8 Vagrant.configure(2) do |config|
9 # The most common configuration options are documented and commented below.
10 # For a complete reference, please see the online documentation at
11 # https://docs.vagrantup.com.
13 # Every Vagrant development environment requires a box. You can search for
14 # boxes at https://atlas.hashicorp.com/search.
15 config.vm.box = "ubuntu/trusty64"
16 config.vm.synced_folder ".", "/home/vagrant/inav"
17 config.vm.hostname = "iNavDev"
18 config.vm.define "iNavDev"
19 config.vm.provider :virtualbox do |vb|
22 # Enable provisioning with a shell script. Additional provisioners such as
23 # Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the
24 # documentation for more information about their specific syntax and use.
25 config.vm.provision "shell", inline: <<-SHELL
26 sudo apt-get remove -y --force-yes gcc-arm-none-eabi ruby
27 sudo apt-add-repository ppa:brightbox/ruby-ng
28 sudo add-apt-repository ppa:team-gcc-arm-embedded/ppa
30 sudo apt-get install -y --force-yes git gcc-arm-embedded ruby2.4 ruby2.4-dev