Vagrantfile 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. # Customize the amount of memory on the VM:
  30. vb.memory = "512"
  31. end
  32. # This section allows you to customize the VMware VM
  33. # settings, ie showing the GUI or upping the memory
  34. # or cores if desired
  35. config.vm.provider "vmware_workstation" do |vmw|
  36. # Hide the VMware GUI when booting the machine
  37. vmw.gui = false
  38. # Customize the amount of memory on the VM:
  39. vmw.memory = "512"
  40. end
  41. config.vm.provider "vmware_fusion" do |vmf|
  42. # Hide the vmfare GUI when booting the machine
  43. vmf.gui = false
  44. # Customize the amount of memory on the VM:
  45. vmf.memory = "512"
  46. end
  47. # This script ensures the required packages for AVR programming are installed
  48. # It also ensures the system always gets the latest updates when powered on
  49. # If this causes issues you can run a 'vagrant destroy' and then
  50. # add a # before ,args: and run 'vagrant up' to get a working
  51. # non-updated box and then attempt to troubleshoot or open a Github issue
  52. config.vm.provision "shell", run: "always", path: "avr_setup.sh", args: "-update"
  53. config.vm.post_up_message = """
  54. Log into the VM using 'vagrant ssh' on OSX or from Git Bash (Win)
  55. or 'vagrant ssh-config' and Putty or Bitvise SSH or another SSH tool
  56. Change directory (cd) to the keyboard you wish to program
  57. (Optionally) modify your layout,
  58. then run 'make clean'
  59. and then 'make' to compile the .eep and .hex files.
  60. Or you can copy and paste the example line below.
  61. cd /vagrant; cd keyboard; cd ergodox_ez; make clean; make
  62. """
  63. end