Fork from inav at github. Modified for some special functions needs.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
1.3 KiB

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