From ca74903c6c9e21ee2abe0201652f1ed22022099e Mon Sep 17 00:00:00 2001 From: MATSUU Takuto Date: Sat, 19 Jul 2014 11:16:43 +0900 Subject: Initial import --- Dockerfile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Dockerfile (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..240105e --- /dev/null +++ b/Dockerfile @@ -0,0 +1,21 @@ +FROM tianon/gentoo-stage3 + +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 gcc distcc && \ + rm -rf /usr/portage/* + +RUN ( \ + echo "#!/bin/sh" && \ + echo "eval \"\`gcc-config -E\`\"" && \ + echo "exec distccd \"\$@\"" \ + ) > /usr/local/sbin/distccd-launcher && \ + chmod +x /usr/local/sbin/distccd-launcher + +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