# you can use this default if you like...
baseboxurl = "https://f-droid.org/testing32.box"
+# The amount of RAM the build server will have
memory = 3584
+# The number of CPUs the build server will have
+cpus = 1
+
# Debian package proxy server - if you have one, e.g. "http://192.168.0.19:8000"
aptproxy = None
config.vm.provider "virtualbox" do |v|
v.customize ["modifyvm", :id, "--memory", "{2}"]
+ v.customize ["modifyvm", :id, "--cpus", "{3}"]
end
config.vm.provision :shell, :path => "fixpaths.sh"
-""".format(config['basebox'], config['baseboxurl'], config['memory'])
+""".format(config['basebox'],
+ config['baseboxurl'],
+ config['memory'],
+ config['cpus'] or 1)
if 'aptproxy' in config and config['aptproxy']:
vagrantfile += """
config.vm.provision :shell, :inline => 'sudo echo "Acquire::http {{ Proxy \\"{0}\\"; }};" > /etc/apt/apt.conf.d/02proxy && sudo apt-get update'