FROM centos:7 ARG TRAC_VERSION=0.10.5 RUN \ yum install -y python-devel python-setuptools python-setuptools-devel make autoconf automake libtool && \ yum install -y openssh-clients wget mc && \ easy_install pip bzr RUN cd /usr/src && \ curl -sL https://github.com/edgewall/trac/archive/trac-${TRAC_VERSION}.tar.gz | tar xvz && \ cd trac-trac-${TRAC_VERSION}/ && \ python ./setup.py install && \ cd .. && \ rm -Rf trac-$trac_version/ RUN cd /usr/src/ && \ curl -sL http://www.clearsilver.net/downloads/clearsilver-0.10.5.tar.gz | tar xvz && \ cd clearsilver-0.10.5 && \ ./configure --with-python="/usr/bin/python" --disable-ruby --disable-java --disable-perl --disable-apache --disable-csharp && \ make && make install && \ cd .. && \ rm -Rf clearsilver-0.10.5 COPY eggs /usr/src/eggs RUN mkdir -p /home/csa/ && \ ln -s /trac /home/csa/.trac && \ easy_install http://effbot.org/downloads/Imaging-1.1.7.tar.gz && \ easy_install dnspython && \ easy_install spambayes && \ easy_install /usr/src/eggs/0/*.egg && \ easy_install /usr/src/eggs/*.egg # For ugly applications which want to resolve user name RUN chmod g=u /etc/passwd COPY docker-entrypoint.sh / ENTRYPOINT ["/docker-entrypoint.sh"] CMD ["tracd", "-p", "8080", "--env-parent-dir", "/trac"] EXPOSE 8080