]> git.donarmstrong.com Git - qmk_firmware.git/blob - Vagrantfile
Adding Vagrantfile for easier compile environment setup
[qmk_firmware.git] / Vagrantfile
1 # -*- mode: ruby -*-\r
2 # vi: set ft=ruby :\r
3 \r
4 Vagrant.configure(2) do |config|\r
5   config.vm.box = "dragon788/arch-ala-elasticdog"\r
6 \r
7   # This section allows you to customize the Virtualbox VM\r
8   # settings, ie showing the GUI or upping the memory\r
9   # or cores if desired\r
10   config.vm.provider "virtualbox" do |vb|\r
11     # Hide the VirtualBox GUI when booting the machine\r
12     vb.gui = false\r
13   \r
14     # Customize the amount of memory on the VM:\r
15     vb.memory = "512"\r
16   end\r
17 \r
18   # This section allows you to customize the VMware VM\r
19   # settings, ie showing the GUI or upping the memory\r
20   # or cores if desired\r
21   config.vm.provider "vmware" do |vmw|\r
22     # Hide the VMware GUI when booting the machine\r
23     vmw.gui = false\r
24   \r
25     # Customize the amount of memory on the VM:\r
26     vmw.memory = "512"\r
27   end\r
28 \r
29   # This ensures the system always gets the latest updates when powered on\r
30   # If this causes issues you can run a 'vagrant destroy' and then\r
31   # comment out these three lines and run 'vagrant up' to get a working\r
32   # non-updated box and then attempt to troubleshoot after it has started\r
33   #\r
34   config.vm.provision "shell", run: "always", inline: <<-SHELL\r
35     sudo pacman -Syu --needed --noconfirm\r
36   SHELL\r
37   \r
38   # Allow user to speed up package installs using powerpill/wget tweaks\r
39   # Always run the pacman mirror update script if possible when vagrant comes up\r
40   # This will ensure that users never get stalled on a horribly slow mirror\r
41 \r
42   config.vm.provision "shell", path: "avr_setup.sh"\r
43 \r
44   config.vm.post_up_message = """Change directory to the keyboard you wish to program and modify your layout, then run 'make clean' and 'make' to compile the .eep and .hex files."""\r
45 end\r