-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #208 from hecko/python3-rhel7
Port to Python3 and add Dockerfile for supported platforms.
- Loading branch information
Showing
35 changed files
with
648 additions
and
352 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Build docker images | ||
|
||
on: | ||
push: | ||
branches: | ||
- '**' | ||
|
||
jobs: | ||
images_test_build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Build image based on RHEL7 | ||
run: docker build -t sems -f Dockerfile-rhel7 . | ||
|
||
- name: Build image based on RHEL8 | ||
run: docker build -t sems -f Dockerfile-rhel8 . | ||
|
||
- name: Build image based on RHEL9 | ||
run: docker build -t sems -f Dockerfile-rhel9 . | ||
|
||
- name: Build image based on Debian 11 | ||
run: docker build -t sems -f Dockerfile-debian11 . | ||
|
||
- name: Build image based on Debian 12 | ||
run: docker build -t sems -f Dockerfile-debian12 . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
FROM debian:11 | ||
|
||
RUN apt update | ||
RUN apt install -y \ | ||
git debhelper g++ make libspandsp-dev flite1-dev \ | ||
libspeex-dev libgsm1-dev libopus-dev libssl-dev python3-dev \ | ||
python3.9-dev \ | ||
python3-sip-dev openssl libev-dev libmysqlcppconn-dev libevent-dev \ | ||
libxml2-dev libcurl4-openssl-dev libhiredis-dev | ||
|
||
WORKDIR / | ||
|
||
RUN git clone --depth 1 --branch python3-rhel7 https://github.com/hecko/sems.git | ||
|
||
WORKDIR /sems | ||
|
||
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
FROM debian:12 | ||
|
||
RUN apt update | ||
RUN apt install -y \ | ||
git debhelper g++ make libspandsp-dev flite1-dev \ | ||
libspeex-dev libgsm1-dev libopus-dev libssl-dev python3-dev \ | ||
python3.11-dev \ | ||
python3-sip-dev openssl libev-dev libmysqlcppconn-dev libevent-dev \ | ||
libxml2-dev libcurl4-openssl-dev libhiredis-dev | ||
|
||
WORKDIR / | ||
|
||
RUN git clone --depth 1 --branch python3-rhel7 https://github.com/hecko/sems.git | ||
|
||
WORKDIR /sems | ||
|
||
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
FROM almalinux:8 | ||
|
||
RUN yum -y update | ||
|
||
RUN yum install -y epel-release \ | ||
&& dnf config-manager --set-enabled powertools \ | ||
&& 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 \ | ||
python36-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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
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 \ | ||
make \ | ||
gcc-c++ \ | ||
libevent-devel \ | ||
gsm-devel \ | ||
opus-devel \ | ||
speex-devel \ | ||
openssl-devel \ | ||
python3-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 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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.