-
Notifications
You must be signed in to change notification settings - Fork 189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
http_proxy does not work in some cases like remote_file #90
Comments
Thought I found my saviour in test-kitchen/test-kitchen#192, but this was overridden by test-kitchen/test-kitchen@6e30431 . Not quiet sure how it is supposed to work now. |
Managed to get it to work. Needed to add to Auto HTTP Caching Spike the following in the
After a few experiments, it looks like a combination of this and the use of the if Vagrant.has_plugin?("vagrant-cachier")
# Configure cached packages to be shared between instances of the same base box.
# More info on http://fgrehm.viewdocs.io/vagrant-cachier/usage
c.cache.scope = :box
end Don't forget to add
Results of my tests:Without any
|
Hi there.
Looks like there are scenarios where
http_proxy
does not quiet work as mentioned in #6 ...The cookbook I am working on is downloading a large binary file (200+ megs) and
remote_file
is used to download it from the website (sample url: http://www.atlassian.com/software/confluence/downloads/binary/atlassian-confluence-5.4.4-x64.bin). The code is as follows:I am using
polipo
and the Auto HTTP Caching Spike from @fnichol (nice work :) ) to runtest-kitchen
on anubuntu-1204
, butpolipo
's cache is not used for the file. It is used byapt
installs in cookbooks lesmysql
orapache2
, or other types of downloads like in thejava
cookbook, but not for theremote_file
.I tried with Vagrant. I adapted the spike to use in on the
Vagrantfile
in conjonction withvagrant-proxyconf
:There, caching works and the file is downloaded in no time.
I have also tried to port this for use with
test-kitchen
using thevagrantfile_erb
config to have the same vagrant file used. Caching still does not take place forremote_file
.Any clues?
The text was updated successfully, but these errors were encountered: