Vagrantfile 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. # VMware/Virtualbox 64 bit
  14. # config.vm.box = "bento/opensuse-13.2-x86_64"
  15. #
  16. # Virtualbox only
  17. # config.vm.box = "bento/opensuse-13.2-i386"
  18. # config.vm.box = ""
  19. # config.vm.box = ""
  20. # This section allows you to customize the Virtualbox VM
  21. # settings, ie showing the GUI or upping the memory
  22. # or cores if desired
  23. config.vm.provider "virtualbox" do |vb|
  24. # Hide the VirtualBox GUI when booting the machine
  25. vb.gui = false
  26. # Customize the amount of memory on the VM:
  27. vb.memory = "512"
  28. end
  29. # This section allows you to customize the VMware VM
  30. # settings, ie showing the GUI or upping the memory
  31. # or cores if desired
  32. config.vm.provider "vmware" do |vmw|
  33. # Hide the VMware GUI when booting the machine
  34. vmw.gui = false
  35. # Customize the amount of memory on the VM:
  36. vmw.memory = "512"
  37. end
  38. # This script ensures the required packages for AVR programming are installed
  39. # It also ensures the system always gets the latest updates when powered on
  40. # If this causes issues you can run a 'vagrant destroy' and then
  41. # add a # before ,args: and run 'vagrant up' to get a working
  42. # non-updated box and then attempt to troubleshoot or open a Github issue
  43. config.vm.provision "shell", run: "always", path: "avr_setup.sh", args: "-update"
  44. config.vm.post_up_message = """
  45. Log into the VM using 'vagrant ssh' on OSX or from Git Bash (Win)
  46. or 'vagrant ssh-config' and Putty or another SSH tool
  47. Change directory to the keyboard you wish to program
  48. optionally and modify your layout,
  49. then run 'make clean'
  50. and then 'make' to compile the .eep and .hex files.
  51. Or you can copy and paste the line below.
  52. cd /vagrant; cd keyboard; cd ergodox_ez; make clean; make
  53. """
  54. end