|
@@ -540,7 +540,7 @@ RUN apt-get update && apt-get install --no-install-recommends -y \
|
|
|
libxtst6 \
|
|
libxtst6 \
|
|
|
libxext6 && \
|
|
libxext6 && \
|
|
|
if [ "$(grep VERSION_ID= /etc/os-release | cut -d= -f2 | tr -d '\"')" \> "20.04" ]; then apt-get install --no-install-recommends -y xcvt libopenh264-dev libde265-0 svt-av1 aom-tools; else apt-get install --no-install-recommends -y mesa-utils-extra; fi && \
|
|
if [ "$(grep VERSION_ID= /etc/os-release | cut -d= -f2 | tr -d '\"')" \> "20.04" ]; then apt-get install --no-install-recommends -y xcvt libopenh264-dev libde265-0 svt-av1 aom-tools; else apt-get install --no-install-recommends -y mesa-utils-extra; fi && \
|
|
|
- # Automatically fetch the latest selkies-gstreamer version and install the components
|
|
|
|
|
|
|
+ # Automatically fetch the latest Selkies-GStreamer version and install the components
|
|
|
SELKIES_VERSION="$(curl -fsSL "https://api.github.com/repos/selkies-project/selkies-gstreamer/releases/latest" | jq -r '.tag_name' | sed 's/[^0-9\.\-]*//g')" && \
|
|
SELKIES_VERSION="$(curl -fsSL "https://api.github.com/repos/selkies-project/selkies-gstreamer/releases/latest" | jq -r '.tag_name' | sed 's/[^0-9\.\-]*//g')" && \
|
|
|
cd /opt && curl -fsSL "https://github.com/selkies-project/selkies-gstreamer/releases/download/v${SELKIES_VERSION}/gstreamer-selkies_gpl_v${SELKIES_VERSION}_ubuntu$(grep VERSION_ID= /etc/os-release | cut -d= -f2 | tr -d '\"')_$(dpkg --print-architecture).tar.gz" | tar -xzf - && \
|
|
cd /opt && curl -fsSL "https://github.com/selkies-project/selkies-gstreamer/releases/download/v${SELKIES_VERSION}/gstreamer-selkies_gpl_v${SELKIES_VERSION}_ubuntu$(grep VERSION_ID= /etc/os-release | cut -d= -f2 | tr -d '\"')_$(dpkg --print-architecture).tar.gz" | tar -xzf - && \
|
|
|
cd /tmp && curl -O -fsSL "https://github.com/selkies-project/selkies-gstreamer/releases/download/v${SELKIES_VERSION}/selkies_gstreamer-${SELKIES_VERSION}-py3-none-any.whl" && pip3 install --no-cache-dir --force-reinstall "selkies_gstreamer-${SELKIES_VERSION}-py3-none-any.whl" && rm -f "selkies_gstreamer-${SELKIES_VERSION}-py3-none-any.whl" && \
|
|
cd /tmp && curl -O -fsSL "https://github.com/selkies-project/selkies-gstreamer/releases/download/v${SELKIES_VERSION}/selkies_gstreamer-${SELKIES_VERSION}-py3-none-any.whl" && pip3 install --no-cache-dir --force-reinstall "selkies_gstreamer-${SELKIES_VERSION}-py3-none-any.whl" && rm -f "selkies_gstreamer-${SELKIES_VERSION}-py3-none-any.whl" && \
|
|
@@ -586,9 +586,10 @@ turnserver \
|
|
|
--max-port=\"\${TURN_MAX_PORT:-65535}\" \
|
|
--max-port=\"\${TURN_MAX_PORT:-65535}\" \
|
|
|
--channel-lifetime=\"\${TURN_CHANNEL_LIFETIME:--1}\" \
|
|
--channel-lifetime=\"\${TURN_CHANNEL_LIFETIME:--1}\" \
|
|
|
--lt-cred-mech \
|
|
--lt-cred-mech \
|
|
|
- --user \"selkies:\${TURN_RANDOM_PASSWORD}\" \
|
|
|
|
|
|
|
+ --user=\"selkies:\${TURN_RANDOM_PASSWORD:-\$(tr -dc 'A-Za-z0-9' < /dev/urandom 2>/dev/null | head -c 24)}\" \
|
|
|
--no-cli \
|
|
--no-cli \
|
|
|
--cli-password=\"\${TURN_RANDOM_PASSWORD:-\$(tr -dc 'A-Za-z0-9' < /dev/urandom 2>/dev/null | head -c 24)}\" \
|
|
--cli-password=\"\${TURN_RANDOM_PASSWORD:-\$(tr -dc 'A-Za-z0-9' < /dev/urandom 2>/dev/null | head -c 24)}\" \
|
|
|
|
|
+ --db=\"\${XDG_RUNTIME_DIR:-/tmp}/coturn-turndb\" \
|
|
|
--allow-loopback-peers \
|
|
--allow-loopback-peers \
|
|
|
\${TURN_EXTRA_ARGS} \$@\
|
|
\${TURN_EXTRA_ARGS} \$@\
|
|
|
" > /etc/start-turnserver.sh && chmod -f 755 /etc/start-turnserver.sh
|
|
" > /etc/start-turnserver.sh && chmod -f 755 /etc/start-turnserver.sh
|