Dockerfile.centos 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. FROM centos:7
  2. ARG TRAC_VERSION=1.2.4
  3. ENV HOME=/tmp
  4. RUN \
  5. yum install -y python-devel python-setuptools python-setuptools-devel make autoconf automake libtool && \
  6. yum install -y openssh-clients wget mc && \
  7. easy_install pip Genshi pytz Babel docutils Pygments
  8. RUN cd /usr/src && \
  9. curl -sL https://github.com/edgewall/trac/archive/trac-${TRAC_VERSION}.tar.gz | tar xvz && \
  10. cd trac-trac-${TRAC_VERSION}/ && \
  11. python ./setup.py install && \
  12. cd .. && \
  13. rm -Rf trac-$trac_version/
  14. RUN pip install 'https://trac-hacks.org/browser/accountmanagerplugin/tags/acct_mgr-0.5.0?rev=17460&format=zip'
  15. RUN mkdir -p /auth && \
  16. touch /auth/htpasswd && \
  17. touch /auth/htgroups && \
  18. mkdir -p /trac && \
  19. ln -s /auth/htpasswd /trac/.htpasswd && \
  20. ln -s /auth/htgroups /trac/.htgroups && \
  21. mkdir -p /home/csa/ && \
  22. ln -s /trac /home/csa/.trac && \
  23. rm -rf /tmp/.cache/ && \
  24. chmod g=u /etc/passwd
  25. COPY docker-entrypoint.sh /
  26. ENTRYPOINT ["/docker-entrypoint.sh"]
  27. CMD ["tracd", "-p", "8080", "--env-parent-dir", "/trac"]
  28. EXPOSE 8080