From e09cde6bc49e9c10d604446bbb56401a34c58710 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Mon, 2 Sep 2019 21:06:35 +0200 Subject: Make it work with nowadays system --- Dockerfile | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index 240105e..a32229e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,13 @@ -FROM tianon/gentoo-stage3 +FROM gentoo/stage3-amd64:20190829 -RUN touch /etc/init.d/functions.sh && \ - echo 'PYTHON_TARGETS="${PYTHON_TARGETS} python2_7"' >> /etc/portage/make.conf && \ - echo 'PYTHON_SINGLE_TARGET="python2_7"' >> /etc/portage/make.conf +RUN emerge --sync && \ + emerge -1 portage -RUN \ - emerge --sync && \ - emerge gcc distcc && \ - rm -rf /usr/portage/* +#RUN touch /etc/init.d/functions.sh && \ +# echo 'PYTHON_TARGETS="${PYTHON_TARGETS} python3_6"' >> /etc/portage/make.conf && \ +# echo 'PYTHON_SINGLE_TARGET="python3_6"' >> /etc/portage/make.conf + +RUN emerge =gcc-8.3.0* distcc RUN ( \ echo "#!/bin/sh" && \ @@ -16,6 +16,10 @@ RUN ( \ ) > /usr/local/sbin/distccd-launcher && \ chmod +x /usr/local/sbin/distccd-launcher + +RUN rm -rf /usr/portage/* + +#CMD ["/usr/local/sbin/distccd-launcher", "--allow", "0.0.0.0/0", "--user", "distcc", "--log-level", "notice", "--log-stderr", "--no-detach", "--verbose"] CMD ["/usr/local/sbin/distccd-launcher", "--allow", "0.0.0.0/0", "--user", "distcc", "--log-level", "notice", "--log-stderr", "--no-detach"] EXPOSE 3632 -- cgit v1.2.3