-
Notifications
You must be signed in to change notification settings - Fork 95
/
Copy pathDockerfile-rhel9
54 lines (48 loc) · 1.33 KB
/
Dockerfile-rhel9
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
FROM almalinux:9
RUN yum install -y epel-release \
&& dnf config-manager --set-enabled crb \
&& dnf install -y https://dev.mysql.com/get/mysql80-community-release-el9-1.noarch.rpm \
&& dnf install -y \
git \
cmake3 \
make \
gcc-c++ \
libevent-devel \
libev-devel \
gsm-devel \
opus-devel \
speex-devel \
openssl-devel \
python3-devel \
hiredis-devel \
zlib-devel \
libcurl-devel \
spandsp-devel \
man \
mysql-connector-c++-devel \
libsamplerate-devel \
libmpg123-devel \
lame-devel \
flite-devel \
codec2-devel \
bcg729-devel \
rpm-build \
mysql-connector-c++ \
which \
python3-mysqlclient --nogpgcheck
WORKDIR /
RUN mkdir -p /root/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
# get the sources
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 SEMS from 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/local/sbin/sems", "-E", "-f", "/usr/local/etc/sems/sems.conf"]