diff options
author | MATSUU Takuto <matsuu@gmail.com> | 2014-07-19 11:16:43 +0900 |
---|---|---|
committer | MATSUU Takuto <matsuu@gmail.com> | 2014-07-19 11:16:43 +0900 |
commit | ca74903c6c9e21ee2abe0201652f1ed22022099e (patch) | |
tree | 6396d62a5b9e12388d11a36ca0dd909ef6f5fa03 /Dockerfile | |
parent | 787e1099f355a74afb493cb31e351bdec3f6663d (diff) | |
download | gentoo-distcc-ca74903c6c9e21ee2abe0201652f1ed22022099e.tar.gz gentoo-distcc-ca74903c6c9e21ee2abe0201652f1ed22022099e.tar.bz2 gentoo-distcc-ca74903c6c9e21ee2abe0201652f1ed22022099e.tar.xz gentoo-distcc-ca74903c6c9e21ee2abe0201652f1ed22022099e.zip |
Initial import
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 21 |
1 files changed, 21 insertions, 0 deletions
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 |