From: W. Trevor King Date: Fri, 22 Aug 2014 10:47:51 +0000 (-0700) Subject: docker-registry/Dockerfile.template: Adjust Python 2 dependency X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=bc534ad049238ccb3f78b5f04f1ea33962dab205;p=dockerfile.git docker-registry/Dockerfile.template: Adjust Python 2 dependency Now that the ancestor gentoo-python image is removing Python 2, we need to get it back for docker-registry. We need to keep the USE_PYTHON setting (with a tweaked value) because *TODO* hasn't transitioned to the *-r1 Python eclasses yet: TODO --- diff --git a/docker-registry/Dockerfile.template b/docker-registry/Dockerfile.template index cbb3788..5478e9a 100644 --- a/docker-registry/Dockerfile.template +++ b/docker-registry/Dockerfile.template @@ -26,9 +26,11 @@ FROM ${NAMESPACE}/gentoo-syslog:${TAG} MAINTAINER ${MAINTAINER} #VOLUME ["${PORTAGE}:/usr/portage:ro", "${PORTAGE}/distfiles:/usr/portage/distfiles:rw"] RUN echo 'USE="${USE} sqlite"' >> /etc/portage/make.conf -RUN echo 'PYTHON_TARGETS="python2_7"' >> /etc/portage/make.conf -RUN echo 'PYTHON_SINGLE_TARGET="python2_7"' >> /etc/portage/make.conf +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) ADD package.accept_keywords /etc/portage/package.accept_keywords RUN emerge -v dev-python/blinker dev-python/boto dev-python/backports-lzma dev-python/flask dev-python/gevent dev-python/pyyaml dev-python/redis-py dev-python/requests dev-python/rsa dev-python/simplejson dev-python/sqlalchemy dev-vcs/git www-servers/gunicorn RUN eselect news read new