Vagrantfile 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. # -*- mode: ruby -*-
  2. # vi: set ft=ruby :
  3. Vagrant.configure(2) do |config|
  4. # You can only have one config.vm.box uncommented at a time
  5. # Comment this and uncomment another if you don't want to use the minimal Arch box
  6. config.vm.box = "dragon788/arch-ala-elasticdog"
  7. # VMware/Virtualbox 64 bit
  8. # config.vm.box = "phusion/ubuntu-14.04-amd64"
  9. #
  10. # VMware/Virtualbox 64 bit
  11. #config.vm.box = "puphpet/centos65-x64"
  12. #
  13. # The opensuse boxes don't have dfu-util in their default repositories
  14. #
  15. # The virtualbox version has tools issues
  16. # VMware/Virtualbox 64 bit
  17. #config.vm.box = "bento/opensuse-13.2-x86_64"
  18. #
  19. # Virtualbox only
  20. #config.vm.box = "bento/opensuse-13.2-i386"
  21. # config.vm.box = ""
  22. # config.vm.box = ""
  23. # This section allows you to customize the Virtualbox VM
  24. # settings, ie showing the GUI or upping the memory
  25. # or cores if desired
  26. config.vm.provider "virtualbox" do |vb|
  27. # Hide the VirtualBox GUI when booting the machine
  28. vb.gui = false
  29. vb.customize ['modifyvm', :id, '--usb', 'on']
  30. vb.customize ['usbfilter', 'add', '0',
  31. '--target', :id,
  32. '--name', 'teensy',
  33. '--vendorid', '0x16c0',
  34. '--productid','0x0478'
  35. ]
  36. # Customize the amount of memory on the VM:
  37. vb.memory = "512"
  38. end
  39. # This section allows you to customize the VMware VM
  40. # settings, ie showing the GUI or upping the memory
  41. # or cores if desired
  42. config.vm.provider "vmware_workstation" do |vmw|
  43. # Hide the VMware GUI when booting the machine
  44. vmw.gui = false
  45. # Customize the amount of memory on the VM:
  46. vmw.memory = "512"
  47. end
  48. config.vm.provider "vmware_fusion" do |vmf|
  49. # Hide the vmfare GUI when booting the machine
  50. vmf.gui = false
  51. # Customize the amount of memory on the VM:
  52. vmf.memory = "512"
  53. end
  54. # This script ensures the required packages for AVR programming are installed
  55. # It also ensures the system always gets the latest updates when powered on
  56. # If this causes issues you can run a 'vagrant destroy' and then
  57. # add a # before ,args: and run 'vagrant up' to get a working
  58. # non-updated box and then attempt to troubleshoot or open a Github issue
  59. config.vm.provision "shell", run: "always", path: "avr_setup.sh", args: "-update"
  60. config.vm.post_up_message = """
  61. Log into the VM using 'vagrant ssh' on OSX or from Git Bash (Win)
  62. or 'vagrant ssh-config' and Putty or Bitvise SSH or another SSH tool
  63. Change directory (cd) to the keyboard you wish to program
  64. (Optionally) modify your layout,
  65. then run 'make clean'
  66. and then 'make' to compile the .eep and .hex files.
  67. Or you can copy and paste the example line below.
  68. cd /vagrant; cd keyboard; cd ergodox_ez; make clean; make
  69. """
  70. end