From: W. Trevor King Date: Thu, 12 Dec 2013 15:32:03 +0000 (-0800) Subject: gentoo-portage/Dockerfile.template: Set rc_sys="lxc" X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=74f64c6dca44e4e94a860b01764cba3307c1b8f5;p=dockerfile.git gentoo-portage/Dockerfile.template: Set rc_sys="lxc" Avoid: $ docker run -p 8010:8010 wking/buildbot ... * Caching service dependencies ... [ ok ] * You are attempting to run an openrc service on a * system which openrc did not boot. * You may be inside a chroot or you may have used * another initialization system to boot this system. * In this situation, you will get unpredictable results! * If you really want to do this, issue the following command: * touch /run/openrc/softlevel * ERROR: syslog-ng failed to start ... --- diff --git a/gentoo-portage/Dockerfile.template b/gentoo-portage/Dockerfile.template index 7b9233a..ac66eb5 100644 --- a/gentoo-portage/Dockerfile.template +++ b/gentoo-portage/Dockerfile.template @@ -1,5 +1,6 @@ FROM NAMESPACE/gentoo:TAG MAINTAINER A. U. Thor +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