blob: 4d24c59b7a99ce0ab3cfe510d679ee8c3567d0d4 (
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
42
43
44
45
46
47
|
FROM centos:7
ARG TRAC_VERSION=0.10.5
ENV HOME=/tmp
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 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
RUN mkdir -p /auth && \
touch /auth/htpasswd && \
touch /auth/htgroups && \
mkdir -p /trac && \
ln -s /auth/htpasswd /trac/.htpasswd && \
ln -s /auth/htgroups /trac/.htgroups && \
mkdir -p /home/csa/ && \
ln -s /trac /home/csa/.trac && \
chmod g=u /etc/passwd
COPY docker-entrypoint.sh /
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["tracd", "-p", "8080", "--env-parent-dir", "/trac"]
EXPOSE 8080
|