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