From: W. Trevor King Date: Fri, 7 Feb 2014 20:22:48 +0000 (-0800) Subject: gentoo-portage/Dockerfile.template: chown portage:portage /usr/portage X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7f4f54bc7f4f704b0d33935ebd4d9e4ebcc085ef;p=dockerfile.git gentoo-portage/Dockerfile.template: chown portage:portage /usr/portage When the usersync feature is enabled (which it is by default), emerge-webrsync uses the owner and group of /usr/portage (${repo_location}) for the unpacked tree. This commit avoids having the whole tree be owned by root:root. --- diff --git a/gentoo-portage/Dockerfile.template b/gentoo-portage/Dockerfile.template index 4bae466..ebe0c50 100644 --- a/gentoo-portage/Dockerfile.template +++ b/gentoo-portage/Dockerfile.template @@ -28,6 +28,7 @@ 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 'SYNC="rsync://rsync.us.gentoo.org"' >> /etc/portage/make.conf RUN mkdir -p /usr/portage +RUN chown -R portage:portage /usr/portage RUN emerge-webrsync RUN emerge --sync --quiet RUN eselect news read new