-
Notifications
You must be signed in to change notification settings - Fork 93
/
Copy pathDockerfile-rhel7
42 lines (35 loc) · 1.34 KB
/
Dockerfile-rhel7
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
FROM centos:7
RUN cat /etc/yum.repos.d/CentOS-Base.repo
RUN sed -i '/^mirrorlist=/d; s/^#baseurl=/baseurl=/' /etc/yum.repos.d/*.repo
#RUN find /etc/yum.repos.d/CentOS-*.repo -type f -exec sed -i 's/mirrorlist\.centos\.org/vault\.centos\.org/g' {} +
RUN find /etc/yum.repos.d/CentOS-*.repo -type f -exec sed -i 's/mirror\.centos\.org/vault\.centos\.org/g' {} +
RUN cat /etc/yum.repos.d/CentOS-Base.repo
RUN yum -y update
RUN yum install -y epel-release \
&& yum install -y https://dev.mysql.com/get/mysql80-community-release-el7-1.noarch.rpm \
&& yum install -y \
git \
make \
gcc-c++ \
libevent-devel \
gsm-devel \
opus-devel \
speex-devel \
openssl-devel \
python3-devel \
python3.6-devel \
hiredis-devel \
zlib-devel \
libcurl-devel \
spandsp-devel \
mysql-connector-c++ \
python3-mysqlclient --nogpgcheck \
&& ln -s /usr/lib64/libmysqlcppconn8.so.2 /usr/lib64/libmysqlcppconn.so
WORKDIR /
RUN git clone --depth 1 --branch python3-rhel7 https://github.com/hecko/sems.git
WORKDIR /sems
RUN ln -s /usr/lib64/libpython3.6m.so /usr/lib64/libpython3.6.so
RUN USE_SPANDSP=1 make
RUN USE_SPANDSP=1 make install
# Run SEMS with the specified configuration
CMD ["/usr/local/sbin/sems", "-E", "-f", "/usr/local/etc/sems/sems.conf"]