aboutsummaryrefslogtreecommitdiff
path: root/Vagrantfile
diff options
context:
space:
mode:
authordragon788 <dragon788@users.noreply.github.com>2016-01-03 22:21:30 -0600
committerdragon788 <dragon788@users.noreply.github.com>2016-01-03 22:21:30 -0600
commitab7d6dca4106bae6876b46f06fe157478a62ecda (patch)
tree730d0ac1043d83aa4470af328914ad389dce295d /Vagrantfile
parenta07d2df99c74623ec3e5299a17bfaa621dfd7e2f (diff)
downloadqmk_firmware-ab7d6dca4106bae6876b46f06fe157478a62ecda.tar.gz
qmk_firmware-ab7d6dca4106bae6876b46f06fe157478a62ecda.zip
Adding Vagrantfile for easier compile environment setup
Diffstat (limited to 'Vagrantfile')
-rw-r--r--Vagrantfile45
1 files changed, 45 insertions, 0 deletions
diff --git a/Vagrantfile b/Vagrantfile
new file mode 100644
index 000000000..e1082a08d
--- /dev/null
+++ b/Vagrantfile
@@ -0,0 +1,45 @@
1# -*- mode: ruby -*-
2# vi: set ft=ruby :
3
4Vagrant.configure(2) do |config|
5 config.vm.box = "dragon788/arch-ala-elasticdog"
6
7 # This section allows you to customize the Virtualbox VM
8 # settings, ie showing the GUI or upping the memory
9 # or cores if desired
10 config.vm.provider "virtualbox" do |vb|
11 # Hide the VirtualBox GUI when booting the machine
12 vb.gui = false
13
14 # Customize the amount of memory on the VM:
15 vb.memory = "512"
16 end
17
18 # This section allows you to customize the VMware VM
19 # settings, ie showing the GUI or upping the memory
20 # or cores if desired
21 config.vm.provider "vmware" do |vmw|
22 # Hide the VMware GUI when booting the machine
23 vmw.gui = false
24
25 # Customize the amount of memory on the VM:
26 vmw.memory = "512"
27 end
28
29 # This ensures the system always gets the latest updates when powered on
30 # If this causes issues you can run a 'vagrant destroy' and then
31 # comment out these three lines and run 'vagrant up' to get a working
32 # non-updated box and then attempt to troubleshoot after it has started
33 #
34 config.vm.provision "shell", run: "always", inline: <<-SHELL
35 sudo pacman -Syu --needed --noconfirm
36 SHELL
37
38 # Allow user to speed up package installs using powerpill/wget tweaks
39 # Always run the pacman mirror update script if possible when vagrant comes up
40 # This will ensure that users never get stalled on a horribly slow mirror
41
42 config.vm.provision "shell", path: "avr_setup.sh"
43
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."""
45end