mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-12 10:10:30 +03:00
buildserver: move apt setup to a shell script
This makes it so there is only a single `apt-get install` command run, instead of one command per-package like with the chef script. It also adds `apt-get upgrade` to make sure that the base box is fully up-to-date.
This commit is contained in:
parent
2374b12a77
commit
aafad6b909
4 changed files with 93 additions and 124 deletions
|
|
@ -377,16 +377,12 @@ vagrantfile += """
|
|||
|
||||
config.vm.provision "shell", path: "setup-env-vars",
|
||||
args: ["/home/vagrant/android-sdk"]
|
||||
config.vm.provision "shell", path: "provision-apt-get-install",
|
||||
args: ["{0}"]
|
||||
|
||||
config.vm.provision :chef_solo do |chef|
|
||||
chef.cookbooks_path = "cookbooks"
|
||||
chef.log_level = :debug
|
||||
chef.json = {
|
||||
:settings => {
|
||||
:debian_mirror => "%s",
|
||||
:user => "vagrant"
|
||||
}
|
||||
}
|
||||
chef.add_recipe "fdroidbuild-general"
|
||||
chef.add_recipe "kivy"
|
||||
end
|
||||
|
|
@ -404,7 +400,7 @@ vagrantfile += """
|
|||
end
|
||||
|
||||
end
|
||||
""" % config['debian_mirror']
|
||||
""".format(config['debian_mirror'])
|
||||
|
||||
|
||||
# Check against the existing Vagrantfile, and if they differ, we need to
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue