Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## Tuleap All In One ##
- FROM centos:centos6
- MAINTAINER Manuel Vacelet, manuel.vacelet@enalean.com
- COPY ./tuleap/Tuleap.repo /etc/yum.repos.d/
- # python-pip is from epel, so it has to be installed after epel-release
- RUN yum install -y mysql-server \
- epel-release \
- postfix \
- openssh-server \
- rsyslog \
- cronie && \
- yum install -y python-pip && \
- yum clean all && \
- curl https://bootstrap.pypa.io/ez_setup.py | python
- # Gitolite will not work out-of-the-box with an error like
- # "User gitolite not allowed because account is locked"
- # Given http://stackoverflow.com/a/15761971/1528413 you might want to trick
- # /etc/shadown but the following pam modification seems to do the trick too
- # It's better for as as it can be done before installing gitolite, hence
- # creating the user.
- # I still not understand why it's needed (just work without comment or tricks
- # on a fresh centos install)
- # Second sed is for cron
- # Cron: http://stackoverflow.com/a/21928878/1528413
- # Third sed if for epel dependencies, by default php-pecl-apcu provides
- # php-pecl-apc but we really want apc not apcu
- RUN sed -i '/session required pam_loginuid.so/c\#session required pam_loginuid.so' /etc/pam.d/sshd && \
- sed -i '/session required pam_loginuid.so/c\#session required pam_loginuid.so' /etc/pam.d/crond && \
- sed -i '/\[main\]/aexclude=php-pecl-apcu php-guzzle-Guzzle' /etc/yum.conf && \
- /sbin/service sshd start && \
- yum install -y \
- tuleap-install-8.14 \
- tuleap-core-cvs \
- tuleap-core-subversion \
- tuleap-plugin-agiledashboard \
- tuleap-plugin-hudson \
- tuleap-plugin-git-gitolite3 \
- tuleap-plugin-graphontrackers \
- tuleap-theme-flamingparrot \
- tuleap-documentation \
- tuleap-customization-default \
- tuleap-api-explorer && \
- yum clean all && \
- pip install supervisor
- # Instalación de nuevos plugins
- RUN yum install -y tuleap-* \
- -x tuleap-all \
- -x tuleap-plugin-git \
- -x tuleap-plugin-requesthelp \
- -x tuleap-plugin-openid
- # Tener el comando ldapsearch, para tuleap - LDAP
- RUN yum install -y openldap-clients
- # Para postfix smtp.gmail
- RUN yum install -y \
- cyrus-sasl-plain \
- mailx
- # Actualización total del sistema
- RUN yum -y update
- COPY ./tuleap/supervisord.conf /etc/supervisord.conf
- COPY ./tuleap /root/app
- WORKDIR /root/app
- VOLUME [ "/data" ]
- EXPOSE 22 80 443
- CMD ["/root/app/run.sh"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement