Ken Robinson's picture

TKLDev make, does it cache all the downloads via apt-get? I was wondering if I should setup a apt mirror so that I keep all the builds from going out an hitting all the repos etc.. or does TKLDev cache this info?

Forum: 
Tags: 
Jeremy Davis's picture

So it doesn't just cache apt downloads but also wget and curl downloads too.

robertfantini's picture

I was going to ask the same question and found this thread ..

We use apt-cacher-ng , and it does a great job at caching debs. 

I set up apt on tkdev to use our cache:

echo 'Acquire::http::Proxy "http://apt-cacher.fantinibakery.com:3142";' > /etc/apt/apt.conf.d/01proxy

that works for all other deb systems.  But not tkdev  .  Looking further each product has its own /var/cache/apt/archives .   Probably a change root thing used during make. 

 

This is not an urgent issue , I know there are a lot of other things being worked on .

Jeremy Davis's picture

TKLDev uses Polipo (as it's caching proxy).

To make the builds use aptcacher-ng you would need to install it into them from the start and then you would need to add the config. If you wanted to end up with vanilla appliances, then you'd also need to remove the package and the config after the build. If it is for your own use and you want them pre-configured to use your apt-cache then you could just leave it.

The initial setup shouldn't be too hard (add apt-cacher to one of the base plans and make the conf an overlay and add it to the base makefile). But TBH I'm not sure exactly how to remove it all again...

TBH I'm assuming that is why TKLDev uses Polipo instead (much easier setup).

Add new comment