Jan 17,
2018

Ephemeral Logs Reprise

Greetings folks!

I've figured out that when playing with Docker's Debian images, it's a good idea to pull Debian packages from a fast local repository. And what can be faster than using a local APT proxy, especially when your uplink with the Interweb is excruciatingly dial-up era slow?

I would say that apt-cacher-ng fits the bill perfectly and basically works out of the box, with one small caveat. On my configuration I've found out that, like what I've described some time ago with lighttpd1, it refuses to start if it can't find its log directory.

Deja Vu

As with lighttpd, the suggested method to fix it is to add a file in /etc/tmpfiles.d with the files or directories to create at boot time. This is the content of my apt-cacher-ng-log.conf file:

D /var/log/apt-cacher-ng/ 0755 apt-cacher-ng adm

Yeah, I didn't spent a lot of time on this one. Splendid!