Advertisement
Guest User

Untitled

a guest
May 26th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.45 KB | None | 0 0
  1. ## Tuleap All In One ##
  2. FROM centos:centos6
  3.  
  4. MAINTAINER Manuel Vacelet, manuel.vacelet@enalean.com
  5.  
  6. COPY ./tuleap/Tuleap.repo /etc/yum.repos.d/
  7.  
  8. # python-pip is from epel, so it has to be installed after epel-release
  9. RUN yum install -y mysql-server \
  10. epel-release \
  11. postfix \
  12. openssh-server \
  13. rsyslog \
  14. cronie && \
  15. yum install -y python-pip && \
  16. yum clean all && \
  17. curl https://bootstrap.pypa.io/ez_setup.py | python
  18.  
  19. # Gitolite will not work out-of-the-box with an error like
  20. # "User gitolite not allowed because account is locked"
  21. # Given http://stackoverflow.com/a/15761971/1528413 you might want to trick
  22. # /etc/shadown but the following pam modification seems to do the trick too
  23. # It's better for as as it can be done before installing gitolite, hence
  24. # creating the user.
  25. # I still not understand why it's needed (just work without comment or tricks
  26. # on a fresh centos install)
  27.  
  28. # Second sed is for cron
  29. # Cron: http://stackoverflow.com/a/21928878/1528413
  30.  
  31. # Third sed if for epel dependencies, by default php-pecl-apcu provides
  32. # php-pecl-apc but we really want apc not apcu
  33.  
  34. RUN sed -i '/session required pam_loginuid.so/c\#session required pam_loginuid.so' /etc/pam.d/sshd && \
  35. sed -i '/session required pam_loginuid.so/c\#session required pam_loginuid.so' /etc/pam.d/crond && \
  36. sed -i '/\[main\]/aexclude=php-pecl-apcu php-guzzle-Guzzle' /etc/yum.conf && \
  37. /sbin/service sshd start && \
  38. yum install -y \
  39. tuleap-install-8.14 \
  40. tuleap-core-cvs \
  41. tuleap-core-subversion \
  42. tuleap-plugin-agiledashboard \
  43. tuleap-plugin-hudson \
  44. tuleap-plugin-git-gitolite3 \
  45. tuleap-plugin-graphontrackers \
  46. tuleap-theme-flamingparrot \
  47. tuleap-documentation \
  48. tuleap-customization-default \
  49. tuleap-api-explorer && \
  50. yum clean all && \
  51. pip install supervisor
  52.  
  53. # Instalación de nuevos plugins
  54. RUN yum install -y tuleap-* \
  55. -x tuleap-all \
  56. -x tuleap-plugin-git \
  57. -x tuleap-plugin-requesthelp \
  58. -x tuleap-plugin-openid
  59.  
  60. # Tener el comando ldapsearch, para tuleap - LDAP
  61. RUN yum install -y openldap-clients
  62.  
  63. # Para postfix smtp.gmail
  64. RUN yum install -y \
  65. cyrus-sasl-plain \
  66. mailx
  67.  
  68. # Actualización total del sistema
  69. RUN yum -y update
  70.  
  71. COPY ./tuleap/supervisord.conf /etc/supervisord.conf
  72.  
  73. COPY ./tuleap /root/app
  74.  
  75. WORKDIR /root/app
  76.  
  77. VOLUME [ "/data" ]
  78.  
  79. EXPOSE 22 80 443
  80.  
  81. CMD ["/root/app/run.sh"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement