forked from kaltura/platform-install-packages
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
46 lines (37 loc) · 1.17 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
# Main image build file
## SYSTEM
# base
FROM centos:7
# networking
RUN echo "NETWORKING=yes" > /etc/sysconfig/network
# date and locale
#RUN localectl set-locale C - wrong/fix
#RUN timedatectl set-timezone - $(???)
## SSL (hardcocded for now, fix)
FROM docker.io/certbot/certbot
#RUN certbot certonly -d fsboard.gq --standalone -n --agree-tos -m usheynet@gmail.com
## MYSQL
# import
FROM docker.io/percona:5.6.51
RUN mysql_install_db
COPY docker/install/percona-mysql56-server.service /etc/systemd/system/mysql.service
RUN systemctl enable --now mysql
RUN systemctl restart mysql
## FACILITIES
RUN yum install -y postfix memcached ntp
RUN systemctl enable --now postfix memcached ntpd
RUN systemctl restart postfix memcached ntpd
## KALTURA-SERVER
# install rpm
RUN rpm -ihv http://installrepo.kaltura.org/releases/kaltura-release.noarch.rpm
RUN yum install -y kaltura-server
# import platform installer and common files
COPY docker/install/* /root/install/
## SET PERMISSIONS & ACCESS
# installer permissions
RUN chmod +x /root/install/install.sh
# web access
EXPOSE 80 443 1935 88 8443
## ENTRYPOINT
# start services
CMD ["/sbin/init"]