Skip to content

Commit a5c613e

Browse files
authored
Merge pull request #36 from freeswitch/trixie
[GHA] Add `trixie` build target
2 parents 26e5a7f + bd95f8f commit a5c613e

13 files changed

Lines changed: 782 additions & 18 deletions

File tree

.github/docker/debian/bookworm/amd64/fse.release.Dockerfile renamed to .github/docker/debian/bookworm/amd64/fsa.release.Dockerfile

File renamed without changes.

.github/docker/debian/bookworm/arm32v7/fse.release.Dockerfile renamed to .github/docker/debian/bookworm/arm32v7/fsa.release.Dockerfile

File renamed without changes.

.github/docker/debian/bookworm/arm64v8/fse.release.Dockerfile renamed to .github/docker/debian/bookworm/arm64v8/fsa.release.Dockerfile

File renamed without changes.

.github/docker/debian/bullseye/amd64/fse.release.Dockerfile renamed to .github/docker/debian/bullseye/amd64/fsa.release.Dockerfile

File renamed without changes.

.github/docker/debian/bullseye/arm32v7/fse.release.Dockerfile renamed to .github/docker/debian/bullseye/arm32v7/fsa.release.Dockerfile

File renamed without changes.

.github/docker/debian/bullseye/arm64v8/fse.release.Dockerfile renamed to .github/docker/debian/bullseye/arm64v8/fsa.release.Dockerfile

File renamed without changes.
Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
ARG BUILDER_IMAGE=debian:trixie-20250811
2+
3+
FROM ${BUILDER_IMAGE} AS builder
4+
5+
ARG MAINTAINER_NAME="Andrey Volk"
6+
ARG MAINTAINER_EMAIL="andrey@signalwire.com"
7+
8+
ARG CODENAME=trixie
9+
10+
ARG BUILD_NUMBER=42
11+
ARG GIT_SHA=0000000000
12+
13+
ARG DATA_DIR=/data
14+
15+
LABEL maintainer="${MAINTAINER_NAME} <${MAINTAINER_EMAIL}>"
16+
17+
SHELL ["/bin/bash", "-c"]
18+
19+
ENV DEBIAN_FRONTEND=noninteractive
20+
21+
RUN apt-get -q update \
22+
&& apt-get -y -q install \
23+
apt-transport-https \
24+
autoconf \
25+
automake \
26+
build-essential \
27+
ca-certificates \
28+
cmake \
29+
curl \
30+
debhelper \
31+
devscripts \
32+
dh-autoreconf \
33+
dos2unix \
34+
doxygen \
35+
dpkg-dev \
36+
git \
37+
gnupg2 \
38+
graphviz \
39+
libglib2.0-dev \
40+
libssl-dev \
41+
lsb-release \
42+
pkg-config \
43+
unzip \
44+
wget
45+
46+
RUN update-ca-certificates --fresh
47+
48+
RUN echo "export CODENAME=${CODENAME}" | tee ~/.env \
49+
&& chmod +x ~/.env
50+
51+
RUN git config --global --add safe.directory '*' \
52+
&& git config --global user.name "${MAINTAINER_NAME}" \
53+
&& git config --global user.email "${MAINTAINER_EMAIL}"
54+
55+
RUN --mount=type=secret,id=REPO_PASSWORD,required=true \
56+
sha512sum /run/secrets/REPO_PASSWORD && \
57+
curl -sSL https://freeswitch.org/fsget | \
58+
bash -s $(cat /run/secrets/REPO_PASSWORD) release && \
59+
apt-get --quiet update && \
60+
apt-get --yes --quiet install \
61+
libexpat1-dev \
62+
libfreeswitch-dev \
63+
libfreeswitch1 \
64+
libks2 \
65+
libsofia-sip-ua-dev \
66+
libspandsp3-dev \
67+
signalwire-client-c2 \
68+
&& rm -f /etc/apt/auth.conf
69+
70+
# Bootstrap and Build
71+
RUN wget -O - https://www.unimrcp.org/project/component-view/unimrcp-deps-1-6-0-tar-gz/download \
72+
| tar xvz -C /root
73+
74+
WORKDIR /root/unimrcp-deps-1.6.0/libs/apr
75+
RUN CFLAGS="-fPIC -Wno-error=implicit-int -Wno-error=implicit-function-declaration" ./configure \
76+
--disable-shared \
77+
--enable-static \
78+
--prefix=/usr/local/apr \
79+
&& make install
80+
81+
WORKDIR /root/unimrcp-deps-1.6.0/libs/apr-util
82+
RUN CFLAGS="-fPIC -Wno-error=implicit-int -Wno-error=implicit-function-declaration" ./configure \
83+
--prefix=/usr/local/apr \
84+
--with-apr=/usr/local/apr \
85+
--with-expat=/usr \
86+
&& make install
87+
88+
WORKDIR /root
89+
RUN git clone https://github.com/unispeech/unimrcp.git
90+
91+
WORKDIR /root/unimrcp
92+
RUN ./bootstrap \
93+
&& ./configure \
94+
--with-sofia-sip=/usr \
95+
&& make install
96+
97+
COPY . ${DATA_DIR}
98+
WORKDIR ${DATA_DIR}
99+
100+
ENV UNIMRCP_CFLAGS="-I/usr/local/unimrcp/include -I/usr/local/apr/include/apr-1/"
101+
ENV UNIMRCP_LIBS="/usr/local/unimrcp/lib/libunimrcpclient.a /usr/local/apr/lib/libaprutil-1.a /usr/local/apr/lib/libapr-1.a -lexpat -lsofia-sip-ua -luuid -lcrypt -lpthread -lm"
102+
103+
#RUN ./bootstrap.sh \
104+
# && ./configure \
105+
# && make install
106+
107+
RUN . ~/.env \
108+
&& dch \
109+
--controlmaint \
110+
--distribution "${CODENAME}" \
111+
--force-bad-version \
112+
--force-distribution \
113+
--newversion "${BUILD_NUMBER}-${GIT_SHA}~${CODENAME}" \
114+
--package "freeswitch-mod-unimrcp" \
115+
"Build, ${GIT_SHA}" \
116+
&& debuild \
117+
--preserve-env \
118+
--no-tgz-check \
119+
--build=binary \
120+
--unsigned-source \
121+
--unsigned-changes \
122+
&& mkdir OUT \
123+
&& mv -v ../*.{deb,changes} OUT/.
124+
125+
# Artifacts image (mandatory part, the resulting image must have a single filesystem layer)
126+
FROM scratch
127+
COPY --from=builder /data/OUT/ /
Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
ARG BUILDER_IMAGE=debian:trixie-20250811
2+
3+
FROM ${BUILDER_IMAGE} AS builder
4+
5+
ARG MAINTAINER_NAME="Andrey Volk"
6+
ARG MAINTAINER_EMAIL="andrey@signalwire.com"
7+
8+
ARG CODENAME=trixie
9+
10+
ARG BUILD_NUMBER=42
11+
ARG GIT_SHA=0000000000
12+
13+
ARG DATA_DIR=/data
14+
15+
LABEL maintainer="${MAINTAINER_NAME} <${MAINTAINER_EMAIL}>"
16+
17+
SHELL ["/bin/bash", "-c"]
18+
19+
ENV DEBIAN_FRONTEND=noninteractive
20+
21+
RUN apt-get -q update \
22+
&& apt-get -y -q install \
23+
apt-transport-https \
24+
autoconf \
25+
automake \
26+
build-essential \
27+
ca-certificates \
28+
cmake \
29+
curl \
30+
debhelper \
31+
devscripts \
32+
dh-autoreconf \
33+
dos2unix \
34+
doxygen \
35+
dpkg-dev \
36+
git \
37+
gnupg2 \
38+
graphviz \
39+
libglib2.0-dev \
40+
libssl-dev \
41+
lsb-release \
42+
pkg-config \
43+
unzip \
44+
wget
45+
46+
RUN update-ca-certificates --fresh
47+
48+
RUN echo "export CODENAME=${CODENAME}" | tee ~/.env \
49+
&& chmod +x ~/.env
50+
51+
RUN git config --global --add safe.directory '*' \
52+
&& git config --global user.name "${MAINTAINER_NAME}" \
53+
&& git config --global user.email "${MAINTAINER_EMAIL}"
54+
55+
RUN --mount=type=secret,id=REPO_PASSWORD,required=true \
56+
sha512sum /run/secrets/REPO_PASSWORD && \
57+
curl -sSL https://freeswitch.org/fsget | \
58+
bash -s $(cat /run/secrets/REPO_PASSWORD) prerelease && \
59+
apt-get --quiet update && \
60+
apt-get --yes --quiet install \
61+
libexpat1-dev \
62+
libfreeswitch-dev \
63+
libfreeswitch1 \
64+
libks2 \
65+
libsofia-sip-ua-dev \
66+
libspandsp3-dev \
67+
signalwire-client-c2 \
68+
&& rm -f /etc/apt/auth.conf
69+
70+
# Bootstrap and Build
71+
RUN wget -O - https://www.unimrcp.org/project/component-view/unimrcp-deps-1-6-0-tar-gz/download \
72+
| tar xvz -C /root
73+
74+
WORKDIR /root/unimrcp-deps-1.6.0/libs/apr
75+
RUN CFLAGS="-fPIC -Wno-error=implicit-int -Wno-error=implicit-function-declaration" ./configure \
76+
--disable-shared \
77+
--enable-static \
78+
--prefix=/usr/local/apr \
79+
&& make install
80+
81+
WORKDIR /root/unimrcp-deps-1.6.0/libs/apr-util
82+
RUN CFLAGS="-fPIC -Wno-error=implicit-int -Wno-error=implicit-function-declaration" ./configure \
83+
--prefix=/usr/local/apr \
84+
--with-apr=/usr/local/apr \
85+
--with-expat=/usr \
86+
&& make install
87+
88+
WORKDIR /root
89+
RUN git clone https://github.com/unispeech/unimrcp.git
90+
91+
WORKDIR /root/unimrcp
92+
RUN ./bootstrap \
93+
&& ./configure \
94+
--with-sofia-sip=/usr \
95+
&& make install
96+
97+
COPY . ${DATA_DIR}
98+
WORKDIR ${DATA_DIR}
99+
100+
ENV UNIMRCP_CFLAGS="-I/usr/local/unimrcp/include -I/usr/local/apr/include/apr-1/"
101+
ENV UNIMRCP_LIBS="/usr/local/unimrcp/lib/libunimrcpclient.a /usr/local/apr/lib/libaprutil-1.a /usr/local/apr/lib/libapr-1.a -lexpat -lsofia-sip-ua -luuid -lcrypt -lpthread -lm"
102+
103+
#RUN ./bootstrap.sh \
104+
# && ./configure \
105+
# && make install
106+
107+
RUN . ~/.env \
108+
&& dch \
109+
--controlmaint \
110+
--distribution "${CODENAME}" \
111+
--force-bad-version \
112+
--force-distribution \
113+
--newversion "${BUILD_NUMBER}-${GIT_SHA}~${CODENAME}" \
114+
--package "freeswitch-mod-unimrcp" \
115+
"Build, ${GIT_SHA}" \
116+
&& debuild \
117+
--preserve-env \
118+
--no-tgz-check \
119+
--build=binary \
120+
--unsigned-source \
121+
--unsigned-changes \
122+
&& mkdir OUT \
123+
&& mv -v ../*.{deb,changes} OUT/.
124+
125+
# Artifacts image (mandatory part, the resulting image must have a single filesystem layer)
126+
FROM scratch
127+
COPY --from=builder /data/OUT/ /
Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
ARG BUILDER_IMAGE=arm32v7/debian:trixie-20250811
2+
3+
FROM --platform=${BUILDPLATFORM} ${BUILDER_IMAGE} AS builder
4+
5+
ARG MAINTAINER_NAME="Andrey Volk"
6+
ARG MAINTAINER_EMAIL="andrey@signalwire.com"
7+
8+
ARG CODENAME=trixie
9+
10+
ARG BUILD_NUMBER=42
11+
ARG GIT_SHA=0000000000
12+
13+
ARG DATA_DIR=/data
14+
15+
LABEL maintainer="${MAINTAINER_NAME} <${MAINTAINER_EMAIL}>"
16+
17+
SHELL ["/bin/bash", "-c"]
18+
19+
ENV DEBIAN_FRONTEND=noninteractive
20+
21+
RUN apt-get -q update \
22+
&& apt-get -y -q install \
23+
apt-transport-https \
24+
autoconf \
25+
automake \
26+
build-essential \
27+
ca-certificates \
28+
cmake \
29+
curl \
30+
debhelper \
31+
devscripts \
32+
dh-autoreconf \
33+
dos2unix \
34+
doxygen \
35+
dpkg-dev \
36+
git \
37+
gnupg2 \
38+
graphviz \
39+
libglib2.0-dev \
40+
libssl-dev \
41+
lsb-release \
42+
pkg-config \
43+
unzip \
44+
wget
45+
46+
RUN update-ca-certificates --fresh
47+
48+
RUN echo "export CODENAME=${CODENAME}" | tee ~/.env \
49+
&& chmod +x ~/.env
50+
51+
RUN git config --global --add safe.directory '*' \
52+
&& git config --global user.name "${MAINTAINER_NAME}" \
53+
&& git config --global user.email "${MAINTAINER_EMAIL}"
54+
55+
RUN --mount=type=secret,id=REPO_PASSWORD,required=true \
56+
sha512sum /run/secrets/REPO_PASSWORD && \
57+
curl -sSL https://freeswitch.org/fsget | \
58+
bash -s $(cat /run/secrets/REPO_PASSWORD) release && \
59+
apt-get --quiet update && \
60+
apt-get --yes --quiet install \
61+
libexpat1-dev \
62+
libfreeswitch-dev \
63+
libfreeswitch1 \
64+
libks2 \
65+
libsofia-sip-ua-dev \
66+
libspandsp3-dev \
67+
signalwire-client-c2 \
68+
&& rm -f /etc/apt/auth.conf
69+
70+
# Bootstrap and Build
71+
RUN wget -O - https://www.unimrcp.org/project/component-view/unimrcp-deps-1-6-0-tar-gz/download \
72+
| tar xvz -C /root
73+
74+
WORKDIR /root/unimrcp-deps-1.6.0/libs/apr
75+
RUN CFLAGS="-fPIC -Wno-error=implicit-int -Wno-error=implicit-function-declaration" ./configure \
76+
--disable-shared \
77+
--enable-static \
78+
--prefix=/usr/local/apr \
79+
&& make install
80+
81+
WORKDIR /root/unimrcp-deps-1.6.0/libs/apr-util
82+
RUN CFLAGS="-fPIC -Wno-error=implicit-int -Wno-error=implicit-function-declaration" ./configure \
83+
--prefix=/usr/local/apr \
84+
--with-apr=/usr/local/apr \
85+
--with-expat=/usr \
86+
&& make install
87+
88+
WORKDIR /root
89+
RUN git clone https://github.com/unispeech/unimrcp.git
90+
91+
WORKDIR /root/unimrcp
92+
RUN ./bootstrap \
93+
&& ./configure \
94+
--with-sofia-sip=/usr \
95+
&& make install
96+
97+
COPY . ${DATA_DIR}
98+
WORKDIR ${DATA_DIR}
99+
100+
ENV UNIMRCP_CFLAGS="-I/usr/local/unimrcp/include -I/usr/local/apr/include/apr-1/"
101+
ENV UNIMRCP_LIBS="/usr/local/unimrcp/lib/libunimrcpclient.a /usr/local/apr/lib/libaprutil-1.a /usr/local/apr/lib/libapr-1.a -lexpat -lsofia-sip-ua -luuid -lcrypt -lpthread -lm"
102+
103+
#RUN ./bootstrap.sh \
104+
# && ./configure \
105+
# && make install
106+
107+
RUN . ~/.env \
108+
&& dch \
109+
--controlmaint \
110+
--distribution "${CODENAME}" \
111+
--force-bad-version \
112+
--force-distribution \
113+
--newversion "${BUILD_NUMBER}-${GIT_SHA}~${CODENAME}" \
114+
--package "freeswitch-mod-unimrcp" \
115+
"Build, ${GIT_SHA}" \
116+
&& debuild \
117+
--preserve-env \
118+
--no-tgz-check \
119+
--build=binary \
120+
--unsigned-source \
121+
--unsigned-changes \
122+
&& mkdir OUT \
123+
&& mv -v ../*.{deb,changes} OUT/.
124+
125+
# Artifacts image (mandatory part, the resulting image must have a single filesystem layer)
126+
FROM scratch
127+
COPY --from=builder /data/OUT/ /

0 commit comments

Comments
 (0)