gentoo-layman/Dockerfile.template: Work around the lack of Python 2
[dockerfile.git] / gentoo-layman / Dockerfile.template
index 53d2999a5930d631927c90be263acacd210ebdb0..3516234ebec051499867beda2e0fa77cf970859c 100644 (file)
 FROM ${NAMESPACE}/gentoo-syslog:${TAG}
 MAINTAINER ${MAINTAINER}
 #VOLUME ["${PORTAGE}:/usr/portage:ro", "${PORTAGE}/distfiles:/usr/portage/distfiles:rw"]
+
+RUN mkdir /etc/portage/package.accept_keywords
+RUN mkdir /etc/portage/package.use
+# avoid a Python 2 dependency
+RUN echo 'dev-vcs/git -python' >> /etc/portage/package.use/layman
+RUN echo 'app-portage/layman ~amd64' >> /etc/portage/package.accept_keywords/layman
+# required by app-portage/layman-2.1.0-r2
+# =dev-python/ssl-fetch-0.2.1 ~amd64
+RUN echo 'dev-python/ssl-fetch ~amd64' >> /etc/portage/package.accept_keywords/layman
+
 RUN emerge -v layman
 RUN eselect news read new
 RUN echo 'source /var/lib/layman/make.conf' >> /etc/portage/make.conf