From: W. Trevor King Date: Fri, 21 Feb 2014 19:45:30 +0000 (-0800) Subject: gentoo-portage/Dockerfile.template: Use distfiles.gentoo.org for GENTOO_MIRRORS X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6ae2ddf01a208e2d0bee3878523a39c055bb8d22;p=dockerfile.git gentoo-portage/Dockerfile.template: Use distfiles.gentoo.org for GENTOO_MIRRORS This is more generic, and it's easy to customize the mirror by using a package-cache container as a transparent proxy. The clients can still think they're using the generic mirror, but you can volume-mount an /etc/conf.d/package-cache in the proxy container and set SOURCES to whatever you like. --- diff --git a/gentoo-portage/Dockerfile.template b/gentoo-portage/Dockerfile.template index ebe0c50..1b89898 100644 --- a/gentoo-portage/Dockerfile.template +++ b/gentoo-portage/Dockerfile.template @@ -25,7 +25,7 @@ FROM ${NAMESPACE}/gentoo:${TAG} MAINTAINER ${MAINTAINER} RUN sed -i 's/#rc_sys=""/rc_sys="lxc"/g' /etc/rc.conf -RUN echo 'GENTOO_MIRRORS="http://mirror.mcs.anl.gov/pub/gentoo/"' >> /etc/portage/make.conf +RUN echo 'GENTOO_MIRRORS="http://distfiles.gentoo.org/"' >> /etc/portage/make.conf #RUN echo 'SYNC="rsync://rsync.us.gentoo.org"' >> /etc/portage/make.conf RUN mkdir -p /usr/portage RUN chown -R portage:portage /usr/portage