2012-02-03 17:01:35 +01:00
|
|
|
Vagrant::Config.run do |config|
|
|
|
|
|
2012-08-31 15:48:50 +02:00
|
|
|
config.vm.box = "precise32"
|
|
|
|
config.vm.box_url = "/shares/software/OS and Boot/precise32.box"
|
2012-02-03 17:01:35 +01:00
|
|
|
|
2013-01-21 12:09:36 +01:00
|
|
|
config.vm.customize ["modifyvm", :id, "--memory", "1536"]
|
2012-02-03 17:01:35 +01:00
|
|
|
|
|
|
|
config.vm.provision :shell, :path => "fixpaths.sh"
|
|
|
|
# Set apt proxy - remove, or adjust this, accordingly!
|
2012-08-23 15:25:39 +02:00
|
|
|
config.vm.provision :shell, :inline => 'sudo echo "Acquire::http { Proxy \"http://glencoe:3142\"; };" > /etc/apt/apt.conf.d/02proxy && sudo apt-get update'
|
2012-02-03 17:01:35 +01:00
|
|
|
|
|
|
|
config.vm.provision :chef_solo do |chef|
|
|
|
|
chef.cookbooks_path = "cookbooks"
|
|
|
|
chef.log_level = :debug
|
|
|
|
chef.json = {
|
|
|
|
:settings => {
|
|
|
|
:sdk_loc => "/home/vagrant/android-sdk",
|
|
|
|
:ndk_loc => "/home/vagrant/android-ndk",
|
|
|
|
:user => "vagrant"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
chef.add_recipe "android-sdk"
|
|
|
|
chef.add_recipe "android-ndk"
|
|
|
|
chef.add_recipe "fdroidbuild-general"
|
|
|
|
end
|
|
|
|
end
|