Skip to content

Instantly share code, notes, and snippets.

@afh
Created February 2, 2014 09:09
Show Gist options
  • Select an option

  • Save afh/8765061 to your computer and use it in GitHub Desktop.

Select an option

Save afh/8765061 to your computer and use it in GitHub Desktop.
A vagrant setup to compile and test ledger on various operating systems
# -*- mode: ruby -*-
# vi: set ft=ruby :
show_gui = false
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# Ubuntu Saucy Salamander 13.10
config.vm.define "saucy" do |saucy|
saucy.vm.hostname = "saucy"
saucy.vm.box = "saucy64"
saucy.vm.box_url = "http://cloud-images.ubuntu.com/vagrant/saucy/current/saucy-server-cloudimg-amd64-vagrant-disk1.box"
saucy.vm.network :private_network, ip: "10.10.10.13"
saucy.vm.synced_folder ".", "/vagrant", mount_options: %w[dmode=755 fmode=644]
saucy.vm.provider :virtualbox do |vb|
vb.gui = show_gui
vb.customize ["modifyvm", :id,
"--name", "saucy.ledger-cli.org",
"--cpus", "2",
"--cpuexecutioncap", "99",
"--memory", "2048",
]
end
end
# Ubuntu Precise Pangoline 12.04 LTS (also used by Travis CI)
config.vm.define "precise" do |precise|
precise.vm.hostname = "precise"
precise.vm.box = "precise64"
precise.vm.box_url = "http://dl.dropbox.com/u/1537815/precise64.box"
precise.vm.network :private_network, ip: "10.10.10.12"
precise.vm.synced_folder ".", "/vagrant", mount_options: %w[dmode=755 fmode=644]
precise.vm.provider :virtualbox do |vb|
vb.gui = show_gui
vb.customize ["modifyvm", :id,
"--name", "precise.ledger-cli.org",
"--cpus", "2",
"--cpuexecutioncap", "99",
"--memory", "2048",
]
end
end
# Debian Wheezy 7.2
config.vm.define "wheezy" do |wheezy|
wheezy.vm.hostname = "wheezy"
wheezy.vm.box = "wheezy64"
wheezy.vm.box_url = "https://dl.dropboxusercontent.com/u/197673519/debian-7.2.0.box"
wheezy.vm.network :private_network, ip: "10.10.10.7"
wheezy.vm.synced_folder ".", "/vagrant", mount_options: %w[dmode=755 fmode=644]
wheezy.vm.provider :virtualbox do |vb|
vb.gui = show_gui
vb.customize ["modifyvm", :id,
"--name", "wheezy.ledger-cli.org",
"--cpus", "2",
"--cpuexecutioncap", "99",
"--memory", "2048",
]
end
end
config.vm.provision "shell", inline: "sudo apt-get --assume-yes --force-yes install zsh tmux vim git"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment