mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 14:32:28 +03:00
Merge branch 'support-vagrant-cachier' into 'master'
Add optional support for vagrant-cachier plugin Building the basebox is excruciating for people on slow connections. I'm particularly sensitive to this after living in Central America for awhile :) This won't affect anyone who hasn't installed the plugin. For those who do, it creates a persistent shared folder for each box (ie. testing23.box) and detects directories to cache between VM builds (apt, gems, pip, chef cache, etc.) (The only downside is that, for those following server setup does who are not aware what vagrant-cachier does, it might be unexpected that artifacts persist between vagrant destroys.) See merge request !25
This commit is contained in:
commit
99d0c55fe9
2 changed files with 9 additions and 0 deletions
|
@ -117,6 +117,8 @@ Ruby (debian packages ruby and rubygems)
|
||||||
@item
|
@item
|
||||||
Vagrant (unpackaged, tested on v1.4.3)
|
Vagrant (unpackaged, tested on v1.4.3)
|
||||||
@item
|
@item
|
||||||
|
vagrant-cachier plugin (unpackaged): `vagrant plugin install vagrant-cachier`
|
||||||
|
@item
|
||||||
Paramiko (debian package python-paramiko)
|
Paramiko (debian package python-paramiko)
|
||||||
@item
|
@item
|
||||||
Imaging (debian package python-imaging)
|
Imaging (debian package python-imaging)
|
||||||
|
|
|
@ -170,6 +170,13 @@ for f, src, shasum in cachefiles:
|
||||||
vagrantfile = """
|
vagrantfile = """
|
||||||
Vagrant.configure("2") do |config|
|
Vagrant.configure("2") do |config|
|
||||||
|
|
||||||
|
if Vagrant.has_plugin?("vagrant-cachier")
|
||||||
|
config.cache.scope = :box
|
||||||
|
config.cache.auto_detect = false
|
||||||
|
config.cache.enable :apt
|
||||||
|
config.cache.enable :chef
|
||||||
|
end
|
||||||
|
|
||||||
config.vm.box = "{0}"
|
config.vm.box = "{0}"
|
||||||
config.vm.box_url = "{1}"
|
config.vm.box_url = "{1}"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue