lancachenet / monolithic

A monolithic lancache service capable of caching all CDNs in a single instance
https://hub.docker.com/r/lancachenet/monolithic
Other
726 stars 73 forks source link

(Request) Support for apt-repos #135

Closed rwesterflan closed 2 years ago

rwesterflan commented 2 years ago

Describe the issue you are having

Hi! Been using lancache for a while now, and I was thinking - while running a LANparty with a few Ubuntu-servers for games, it would be ideal to cache apt-traffic as well. Seems like Lancache already 'intercepts' http-traffic to adding this sounds simple enough, but maybe it's harder than I think.

MathewBurnett commented 2 years ago

Take a look at apt-cacher-ng , it does exactly what you need and is aware of the repository structure. Basically you have a server as the cache and then have all other hosts with a conf in /etc/apt/apt/conf.d that reads something like

Acquire::http::Proxy "http://:3142";

Deanosim commented 2 years ago

If you really want to use nginx to cache apt, I found a guide here with a quick google http://tdt.rocks/repo_cache_ft_nginx.html because with most things someone has already done it before. It could possibly be added but I don't currently know enough about the inner workings to test it, and also have no need because I use apt-cacher-ng.

stale[bot] commented 2 years ago

This issue has been automatically marked as inactive because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

imakiro commented 2 years ago

Hi,

Could this be looked upon once again? We would like to cache apt for a few servers that are gitlab CI runners for different projects. And because sometimes you can't really edit the CI for a specific runner, well, apt caching should be as transparent as possible. Also, doing apt caching transparently is the best way yo ensure it's used by new hosts. I can invest a bit of time if needed

VibroAxe commented 2 years ago

@imakiro apt-cacher-ng is the correct tool for this. It's designed for it and will always do a better job than any lancache instance. Our policy is that this isn't useful in a gaming environment and you should use the correct tool for the job

Sorry