forked from kaltura/platform-install-packages
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
38 lines (26 loc) · 969 Bytes
/
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
FROM centos:6
RUN echo "NETWORKING=yes" > /etc/sysconfig/network
# mysql
RUN yum install -y mysql mysql-server
RUN mysql_install_db
RUN chkconfig mysqld on
RUN service mysqld start
# facilities
RUN yum install -y postfix ntp
RUN chkconfig postfix on
RUN chkconfig ntpd on
RUN sed -i 's@^inet_protocols = all@inet_protocol = ipv4@g' /etc/postfix/main.cf
RUN service postfix start
RUN service ntpd start
# EPEL
RUN rpm -ihv https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
# kaltura
RUN rpm -ihv http://installrepo.kaltura.org/releases/kaltura-release.noarch.rpm
RUN sed -i '[email protected]@installrepo.origin.kaltura.org@g' /etc/yum.repos.d/kaltura.repo
RUN sed -i 's@^tsflags=nodocs@#tsflags=nodocs@g' /etc/yum.conf
RUN yum install -y kaltura-server
ADD docker/install/* /root/install/
RUN chmod +x /root/install/install.sh
EXPOSE 80 443 1935 88 8443
# start services
CMD ["/sbin/init"]