[[!template id=gitrepo repo=package-cache]] I've been building a lot of [[Docker]] containers recently, using my [Dockerfile framework][dockerfile]. Building Gentoo containers from a seed stage3 is nice, but debugging iterations are a bit slow when you have to fetch all the source from distant the mirrors. To work around this problem, I've written [package-cache][] which handles on-demand caching for content from the Gentoo mirrors. Now you can setup a locale distfiles cache as easily as you can already [setup an rsync mirror for the Portage tree][local-rsync]. I've added a `net-proxy/package-cache` package to my [[wtk overlay|Gentoo_overlay]], and the `README` (on [PyPI][pypi]) has instruction on setting this up locally. There are also [some Docker-specific notes][docker-notes] in my [dockerfile][] repository. [dockerfile]: https://github.com/wking/dockerfile [package-cache]: https://github.com/wking/package-cache [local-rsync]: http://wiki.gentoo.org/wiki/Project:Infrastructure/Rsync#Setting_up_your_own_local_rsync_mirror [pypi]: https://pypi.python.org/pypi/package-cache/ [docker-notes]: https://github.com/wking/dockerfile/tree/master/package-cache [[!tag tags/code]] [[!tag tags/pypi]] [[!tag tags/python]]