gentoo-portage/Dockerfile.template: Remove 'emerge --sync' call
authorW. Trevor King <wking@tremily.us>
Wed, 18 Jun 2014 19:03:52 +0000 (12:03 -0700)
committerW. Trevor King <wking@tremily.us>
Wed, 18 Jun 2014 19:03:52 +0000 (12:03 -0700)
specing points out that the rsync behind 'emerge --sync' is vulnerable
to man-in-the-middle attacks.  In any event, it's probably more
reproducible to stick to the daily snapshot releases used by webrsync
and ignore any changes that have since landed in the rsync mirrors.

gentoo-portage/Dockerfile.template

index cc1df4d7117b5dee73be77342754121d15153c9c..5f0f3e16e4c4c5b95709c7c2cdf309223b820461 100644 (file)
@@ -30,5 +30,4 @@ RUN echo 'GENTOO_MIRRORS="http://distfiles.gentoo.org/"' >> /etc/portage/make.co
 RUN mkdir -p /usr/portage
 RUN chown -R portage:portage /usr/portage
 RUN emerge-webrsync
 RUN mkdir -p /usr/portage
 RUN chown -R portage:portage /usr/portage
 RUN emerge-webrsync
-RUN emerge --sync --quiet
 RUN eselect news read new
 RUN eselect news read new