From: W. Trevor King Date: Sat, 15 Nov 2014 05:20:10 +0000 (-0800) Subject: salt/Dockerfile.template: After selecting Python 2, make it the default X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c6d32fbb1171300280c92bcece27395aa0a11ccd;p=dockerfile.git salt/Dockerfile.template: After selecting Python 2, make it the default No sense in having 'python' point at Python 3 if could get depcleaned later. --- diff --git a/salt/Dockerfile.template b/salt/Dockerfile.template index d3620a3..d9df89e 100644 --- a/salt/Dockerfile.template +++ b/salt/Dockerfile.template @@ -31,6 +31,7 @@ RUN sed -i 's/\(PYTHON_TARGETS\)=.*/\1="python2_7"/' /etc/portage/make.conf RUN sed -i 's/\(PYTHON_SINGLE_TARGET\)=.*/\1="python2_7"/' /etc/portage/make.conf RUN echo 'USE_PYTHON="2.7"' >> /etc/portage/make.conf RUN emerge -v --newuse --deep --with-bdeps=y @system @world +RUN eselect python set $(eselect python show --python2) RUN mkdir /etc/portage/package.accept_keywords RUN mkdir /etc/portage/package.use