mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-13 18:50:29 +03:00
makebuildserver: settable vm boot timeout, plus longer default
On slow machines or VMs like the Debian jenkins box, the VM boot timeout needs to be a lot longer, otherwise vagrant times out before setting up the VM.
This commit is contained in:
parent
3511c44357
commit
90d81eba2d
2 changed files with 11 additions and 1 deletions
|
|
@ -54,6 +54,7 @@ config = {
|
|||
'https://f-droid.org/jessie32.box',
|
||||
],
|
||||
'debian_mirror': 'http://http.debian.net/debian/',
|
||||
'boot_timeout': 600,
|
||||
'cachedir': cachedir,
|
||||
'cpus': 1,
|
||||
'memory': 3584,
|
||||
|
|
@ -353,11 +354,14 @@ Vagrant.configure("2") do |config|
|
|||
v.customize ["modifyvm", :id, "--cpus", "{3}"]
|
||||
end
|
||||
|
||||
config.vm.boot_timeout = {4}
|
||||
|
||||
config.vm.provision :shell, :path => "fixpaths.sh"
|
||||
""".format(config['basebox'],
|
||||
baseboxurl,
|
||||
config['memory'],
|
||||
config.get('cpus', 1))
|
||||
config.get('cpus', 1),
|
||||
config['boot_timeout'])
|
||||
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'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue