-
Notifications
You must be signed in to change notification settings - Fork 95
/
Copy pathDockerfile-rhel8
47 lines (42 loc) · 1.29 KB
/
Dockerfile-rhel8
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
FROM almalinux:8
RUN yum install -y epel-release
RUN dnf config-manager --set-enabled powertools
RUN yum install -y https://dev.mysql.com/get/mysql80-community-release-el8-1.noarch.rpm
RUN yum install -y \
git \
cmake3 \
make \
gcc-c++ \
libevent-devel \
libev-devel \
gsm-devel \
opus-devel \
speex-devel \
openssl-devel \
python36-devel \
hiredis-devel \
zlib-devel \
libcurl-devel \
spandsp-devel \
man \
mysql-connector-c++ \
rpm-build \
bcg729-devel codec2-devel flite-devel \
lame-devel libmpg123-devel libsamplerate-devel \
mysql-connector-c++-devel which man \
python3-mysqlclient --nogpgcheck
RUN ln -s /usr/lib64/libpython3.6m.so /usr/lib64/libpython3.6.so
RUN mkdir -p /root/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
RUN mkdir -p /usr/src/sems
COPY . /usr/src/sems
WORKDIR /usr/src/sems
RUN make rpmtar
RUN rpmbuild -ba pkg/rpm/sems.spec
RUN rpmbuild -bs pkg/rpm/sems.spec
RUN ls -al /root/rpmbuild/RPMS
# install all SEMS RPMs
RUN rpm -i /root/rpmbuild/RPMS/x86_64/sems-*.rpm
RUN /usr/sbin/sems -v
RUN ls -al /etc/sems/sems.conf
# Run SEMS with the specified configuration
CMD ["/usr/sbin/sems", "-E", "-f", "/etc/sems/sems.conf"]