Open krlmlr opened 8 years ago
Nice idea. Are there any existing solutions for that?
I'm not familiar with the technology, but squid and apache came up on a very coarse search. Need to think about HTTPS, too.
I would also like it if our downloads are cached. We need to download some packages from chocolatey and this occasionally fails. We have 14 environments that need to download the same packages. If one of them fails we will need to restart the whole build. This build takes 4 hours at the moment so that means it could take a while before the restarted build is complete. I was unable to set up caching or download retries for these installers so having a caching proxy would also help us.
It turns out this was already added :+1: (https://www.appveyor.com/docs/how-to/http-proxy). Might be time to close this issue @FeodorFitsner.
That proxy is not caching. Regarding failing Chocolatey packages - the solution depends on errors you get and package specifics. Sometimes re-implementing package installation in your own script with retries/caching could help.
Would it be an option to add caching to those proxies?
Yeah, we might add this in the future. It's going to be usable mostly for nuget and Chocolatey.
Might be easier/cheaper to use the private CDN of Chocolatey? (https://chocolatey.org/docs/features-private-cdn)
Chocolatey with private CDN sounds interesting, thanks! Will contact them for the pricing.
Just wanted to add my +1 here, I think this would be a great addition to Appveyor, and much better than the current build cache feature (where HTTP-downloaded files are in question).
Note that there could be two options here:
NuGetDefaults.Config
for nuget)The advantages of either of the above include:
Hope you consider this!
Seems like traffic is just too cheep. Having a transparent proxy would reduce traffic (Good for AppVeyor) and really speed things up dramatically (Good for the customers).
Would it be possible to provide a caching proxy server for all downloads? This might reduce the "in" traffic a lot, which is probably free to you but at the same time is somebody else's "out" traffic. Thanks for considering.