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