This repository has been archived by the owner on Jan 18, 2018. It is now read-only.
forked from Erwyn/docker-tuleap
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
61 lines (46 loc) · 2.13 KB
/
Dockerfile
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
####################
##### TULEAP #######
####################
### VERSION 1.0 ##
####################
## Use the official docker centos distribution ##
FROM centos
## Get some karma ##
MAINTAINER Manuel Vacelet, [email protected]
## Install dependencies ##
RUN yum install -y wget
RUN wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
RUN rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt
RUN rpm -i rpmforge-release-0.5.3-1.el6.rf.*.rpm
ADD rpmforge.repo /etc/yum.repos.d/
RUN rpm -i http://mir01.syntis.net/epel/6/i386/epel-release-6-8.noarch.rpm
## Tweak configuration ##
RUN echo "SELINUX=disabled" > /etc/selinux/config
## Deploy Tuleap ##
RUN yum install -y which redhat-lsb-core mysql-server openssh-server
ADD Tuleap.repo /etc/yum.repos.d/
RUN yum install -y tuleap
RUN yum install -y tuleap-plugin-tracker
RUN yum install -y tuleap-theme-experimental
RUN yum install -y tuleap-theme-tuleap
RUN yum install -y tuleap-core-subversion
# Fix centos defaults
# Cron: http://stackoverflow.com/a/21928878/1528413
RUN sed -i '/session required pam_loginuid.so/c\#session required pam_loginuid.so' /etc/pam.d/crond
# 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)
RUN sed -i '/session required pam_loginuid.so/c\#session required pam_loginuid.so' /etc/pam.d/sshd
RUN /sbin/service sshd start && yum install -y --enablerepo=rpmforge-extras tuleap-plugin-git
RUN echo "NETWORKING=yes" > /etc/sysconfig/network
# Install Tuleap
RUN bash /usr/share/tuleap/tools/setup.sh --sys-default-domain=localhost --sys-org-name=Tuleap --sys-long-org-name=Tuleap
RUN yum -y install supervisor
ADD supervisord.conf /etc/supervisord.conf
CMD ["/usr/bin/supervisord"]
EXPOSE 22 80 443