summaryrefslogtreecommitdiffstats
path: root/0.10/Dockerfile
blob: 9d5db24658a520716cfe564b1533fa05df57f366 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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