docker-janus-gateway/Dockerfile
renovate-bot 62663927b0
All checks were successful
Build and publish / lint (push) Successful in 4s
Build and publish / build (push) Successful in 4m7s
Update dependency cisco/libsrtp to v2.6.0 (#132)
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [cisco/libsrtp](https://github.com/cisco/libsrtp) | minor | `v2.5.0` -> `v2.6.0` |

---

### Release Notes

<details>
<summary>cisco/libsrtp (cisco/libsrtp)</summary>

### [`v2.6.0`](https://github.com/cisco/libsrtp/releases/tag/v2.6.0): libSRTP 2.6.0

[Compare Source](https://github.com/cisco/libsrtp/compare/v2.5.0...v2.6.0)

#### What's Changed

-   cmake: Support configuring as subproject by [@&#8203;yangskyboxlabs](https://github.com/yangskyboxlabs) in https://github.com/cisco/libsrtp/pull/640
-   cmake: Rename TEST_APPS as LIBSRTP_TEST_APPS option by [@&#8203;yangskyboxlabs](https://github.com/yangskyboxlabs) in https://github.com/cisco/libsrtp/pull/641
-   Add a missing typedef for stream list ctx by [@&#8203;Lastique](https://github.com/Lastique) in https://github.com/cisco/libsrtp/pull/643
-   Add x86 SIMD optimizations to crypto datatypes by [@&#8203;Lastique](https://github.com/Lastique) in https://github.com/cisco/libsrtp/pull/507
-   fix typo by [@&#8203;uniontech-lilinjie](https://github.com/uniontech-lilinjie) in https://github.com/cisco/libsrtp/pull/648
-   iv length is constant so set only once by [@&#8203;pabuhler](https://github.com/pabuhler) in https://github.com/cisco/libsrtp/pull/649
-   Fix library version in Doxygen docs by [@&#8203;Lastique](https://github.com/Lastique) in https://github.com/cisco/libsrtp/pull/654
-   remove comma from srtp_profile_t enum value. by [@&#8203;melchi45](https://github.com/melchi45) in https://github.com/cisco/libsrtp/pull/658
-   meson.build: implement mbedtls support by [@&#8203;iameli](https://github.com/iameli) in https://github.com/cisco/libsrtp/pull/660
-   remove travis reference from README.md by [@&#8203;pabuhler](https://github.com/pabuhler) in https://github.com/cisco/libsrtp/pull/661
-   try to use ubuntu-latest by [@&#8203;pabuhler](https://github.com/pabuhler) in https://github.com/cisco/libsrtp/pull/664
-   Some srtp_driver fixes by [@&#8203;pabuhler](https://github.com/pabuhler) in https://github.com/cisco/libsrtp/pull/662
-   Some cipher_driver fixes by [@&#8203;pabuhler](https://github.com/pabuhler) in https://github.com/cisco/libsrtp/pull/663
-   start using const on internal arguments by [@&#8203;pabuhler](https://github.com/pabuhler) in https://github.com/cisco/libsrtp/pull/665
-   Cleaning up cmake and enabled more warnings. by [@&#8203;palerikm](https://github.com/palerikm) in https://github.com/cisco/libsrtp/pull/666
-   fix line break in stream_list.yml by [@&#8203;pabuhler](https://github.com/pabuhler) in https://github.com/cisco/libsrtp/pull/668
-   remove use of pointers to 32bit values by [@&#8203;pabuhler](https://github.com/pabuhler) in https://github.com/cisco/libsrtp/pull/667

#### New Contributors

-   [@&#8203;yangskyboxlabs](https://github.com/yangskyboxlabs) made their first contribution in https://github.com/cisco/libsrtp/pull/640
-   [@&#8203;uniontech-lilinjie](https://github.com/uniontech-lilinjie) made their first contribution in https://github.com/cisco/libsrtp/pull/648
-   [@&#8203;melchi45](https://github.com/melchi45) made their first contribution in https://github.com/cisco/libsrtp/pull/658
-   [@&#8203;iameli](https://github.com/iameli) made their first contribution in https://github.com/cisco/libsrtp/pull/660
-   [@&#8203;palerikm](https://github.com/palerikm) made their first contribution in https://github.com/cisco/libsrtp/pull/666

**Full Changelog**: https://github.com/cisco/libsrtp/compare/v2.5.0...v2.6.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yMDIuMSIsInVwZGF0ZWRJblZlciI6IjM5LjE1Ni4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Reviewed-on: #132
Co-authored-by: renovate-bot <bot@walbeck.it>
Co-committed-by: renovate-bot <bot@walbeck.it>
2025-02-04 17:54:27 +00:00

125 lines
3.7 KiB
Docker

FROM debian:bullseye-slim@sha256:e831d9a884d63734fe3dd9c491ed9a5a3d4c6a6d32c5b14f2067357c49b0b7e1
# renovate: datasource=github-tags depName=meetecho/janus-gateway versioning=semver
ENV JANUS_VERSION v1.3.0
# renovate: datasource=github-tags depName=cisco/libsrtp versioning=semver
ENV LIBSRTP_VERSION v2.6.0
# renovate: datasource=git-tags depName=https://gitlab.freedesktop.org/libnice/libnice versioning=semver
ENV LIBNICE_VERSION 0.1.22
# renovate: datasource=git-tags depName=https://git.walbeck.it/archive/libwebsockets versioning=semver
ENV LIBWEBSOCKETS_VERSION v4.3.3
ENV USRSCTP_VERSION master
RUN set -ex; \
\
groupadd --system --gid 602 janus; \
useradd --no-log-init --system --gid janus --no-create-home --uid 602 janus; \
\
apt-get update; \
apt-get install -y --no-install-recommends \
# Runtime dependencies
ca-certificates \
libconfig9 \
libglib2.0-0 \
libjansson4 \
libssl1.1 \
libcurl4 \
libopus0 \
libogg0 \
libmicrohttpd12 \
# Build dependencies
libmicrohttpd-dev \
libjansson-dev \
libssl-dev \
libglib2.0-dev \
libopus-dev \
libogg-dev \
libcurl4-openssl-dev \
liblua5.3-dev \
libconfig-dev \
pkg-config \
gengetopt \
libtool \
automake \
git \
make \
gtk-doc-tools \
ninja-build \
python3-pip \
cmake \
build-essential \
; \
pip3 install meson; \
mkdir /build; \
git clone --branch $JANUS_VERSION https://github.com/meetecho/janus-gateway.git /build/janus-gateway; \
git clone --branch $LIBSRTP_VERSION https://github.com/cisco/libsrtp.git /build/libsrtp; \
git clone --branch $LIBNICE_VERSION https://gitlab.freedesktop.org/libnice/libnice.git /build/libnice; \
git clone --branch $USRSCTP_VERSION https://github.com/sctplab/usrsctp /build/usrsctp; \
git clone --branch $LIBWEBSOCKETS_VERSION https://git.walbeck.it/archive/libwebsockets /build/libwebsockets; \
\
cd /build/libnice; \
meson --prefix=/usr build; \
ninja -C build; \
ninja -C build install; \
\
cd /build/libsrtp; \
./configure --prefix=/usr --enable-openssl; \
make shared_library && make install; \
\
cd /build/usrsctp; \
./bootstrap; \
./configure --prefix=/usr --disable-programs --disable-inet --disable-inet6; \
make; \
make install; \
\
cd /build/libwebsockets; \
mkdir build; \
cd build; \
cmake -DLWS_MAX_SMP=1 -DLWS_WITHOUT_EXTENSIONS=0 -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_C_FLAGS="-fpic" ..; \
make; \
make install; \
\
cd /build/janus-gateway; \
sh autogen.sh; \
./configure --prefix=/opt/janus --disable-plugin-voicemail --disable-plugin-nosip --disable-plugin-sip \
--disable-plugin-streaming --disable-plugin-recordplay --disable-unix-sockets; \
make; \
make install; \
make configs; \
cd /; \
rm -rf /build; \
chown -R janus:janus /opt/janus; \
\
pip3 uninstall -y meson; \
rm -rf /root/.cache/pip; \
\
apt-get purge -y --autoremove \
libmicrohttpd-dev \
libjansson-dev \
libssl-dev \
libglib2.0-dev \
libopus-dev \
libogg-dev \
libcurl4-openssl-dev \
liblua5.3-dev \
libconfig-dev \
pkg-config \
gengetopt \
libtool \
automake \
git \
make \
gtk-doc-tools \
ninja-build \
python3-pip \
cmake \
build-essential \
; \
rm -rf /var/lib/apt/lists/*;
EXPOSE 8088 8188
USER janus:janus
CMD ["/opt/janus/bin/janus"]