-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix downloads for linux, add vagrantfile, fix where associations file…
… is stored
- Loading branch information
Showing
4 changed files
with
85 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# -*- mode: ruby -*- | ||
# vi: set ft=ruby : | ||
|
||
# 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| | ||
config.vm.box = "precise64" | ||
|
||
config.vm.hostname = "dakait-dev" | ||
config.vm.box_url = "http://files.vagrantup.com/precise64.box" | ||
|
||
config.vm.network :forwarded_port, guest: 3000, host: 3000 | ||
|
||
config.vm.provider :virtualbox do |vb| | ||
vb.customize ["modifyvm", :id, "--memory", "2048"] | ||
vb.customize ["modifyvm", :id, "--cpus", "2"] | ||
vb.customize ["modifyvm", :id, "--ioapic", "on"] | ||
end | ||
|
||
# | ||
ppaRepos = [ | ||
] | ||
|
||
# The postgres/gis family of products is not in the list intentionally since they | ||
# are explicitly installed in one of the scripts | ||
packageList = [ | ||
"git", | ||
"build-essential", | ||
"openjdk-7-jdk" | ||
]; | ||
|
||
if Dir.glob("#{File.dirname(__FILE__)}/.vagrant/machines/default/*/id").empty? | ||
pkg_cmd = "" | ||
|
||
pkg_cmd << "apt-get update -qq; apt-get install -q -y python-software-properties; " | ||
|
||
if ppaRepos.length > 0 | ||
ppaRepos.each { |repo| pkg_cmd << "add-apt-repository -y " << repo << " ; " } | ||
pkg_cmd << "apt-get update -qq; " | ||
end | ||
|
||
# install packages we need | ||
pkg_cmd << "apt-get install -q -y " + packageList.join(" ") << " ; " | ||
|
||
# get the latest version of leiningen and setup it up | ||
pkg_cmd << "wget -O /usr/bin/lein https://raw.github.com/technomancy/leiningen/stable/bin/lein ; " | ||
pkg_cmd << "chmod +x /usr/bin/lein ; " | ||
|
||
config.vm.provision :shell, :inline => pkg_cmd | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters