summaryrefslogtreecommitdiffstats
path: root/0.10/Dockerfile
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2019-08-22 06:22:48 +0200
committerSuren A. Chilingaryan <csa@suren.me>2019-08-22 06:22:48 +0200
commit8336e5b21f8d983489fdf45b6807e3e2f8936e0d (patch)
tree474c7bc178d76cfe5e5769bb0f299e962449847c /0.10/Dockerfile
downloadtrac-8336e5b21f8d983489fdf45b6807e3e2f8936e0d.tar.gz
trac-8336e5b21f8d983489fdf45b6807e3e2f8936e0d.tar.bz2
trac-8336e5b21f8d983489fdf45b6807e3e2f8936e0d.tar.xz
trac-8336e5b21f8d983489fdf45b6807e3e2f8936e0d.zip
Initial release
Diffstat (limited to '0.10/Dockerfile')
-rw-r--r--0.10/Dockerfile41
1 files changed, 41 insertions, 0 deletions
diff --git a/0.10/Dockerfile b/0.10/Dockerfile
new file mode 100644
index 0000000..9d5db24
--- /dev/null
+++ b/0.10/Dockerfile
@@ -0,0 +1,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