aboutsummaryrefslogtreecommitdiff
path: root/docker/jitsi/jitsi-videobridge
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2020-03-22 19:47:10 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2020-03-22 19:47:10 +0100
commit8fe3a046a480cf4ea8e19228d408265c279eeff9 (patch)
treee22165d5754cd60a352f603b4fd6acb9181e94c7 /docker/jitsi/jitsi-videobridge
parentceb8a8b930f5cacf572a2ac8382e199b86dd8da8 (diff)
downloadinfrastructure-8fe3a046a480cf4ea8e19228d408265c279eeff9.tar.gz
infrastructure-8fe3a046a480cf4ea8e19228d408265c279eeff9.zip
WIP videobridge
Diffstat (limited to 'docker/jitsi/jitsi-videobridge')
-rw-r--r--docker/jitsi/jitsi-videobridge/Dockerfile8
-rwxr-xr-xdocker/jitsi/jitsi-videobridge/jvb_run22
2 files changed, 29 insertions, 1 deletions
diff --git a/docker/jitsi/jitsi-videobridge/Dockerfile b/docker/jitsi/jitsi-videobridge/Dockerfile
index 7216b8c..e34d000 100644
--- a/docker/jitsi/jitsi-videobridge/Dockerfile
+++ b/docker/jitsi/jitsi-videobridge/Dockerfile
@@ -11,5 +11,11 @@ RUN wget https://download.jitsi.org/jitsi-videobridge/linux/jitsi-videobridge-li
FROM debian:buster
RUN apt-get update && \
- apt-get install -y
+ apt-get install -y openjdk-11-jdk
+COPY --from=builder /jvb /srv/jvb
+ENV HOME=/srv/jvb
+WORKDIR /srv/jvb
+COPY jvb_run /usr/local/bin/jvb_run
+
+CMD ["/usr/local/bin/jvb_run"]
diff --git a/docker/jitsi/jitsi-videobridge/jvb_run b/docker/jitsi/jitsi-videobridge/jvb_run
new file mode 100755
index 0000000..dcd3cab
--- /dev/null
+++ b/docker/jitsi/jitsi-videobridge/jvb_run
@@ -0,0 +1,22 @@
+#!/bin/bash
+
+cat >> /etc/hosts <<EOF
+${JITSI_PROSODY_HOST} jitsi.deuxfleurs.fr conference.jitsi.deuxfleurs.fr jitsi-videobridge.jitsi.deuxfleurs.fr focus.jitsi.deuxfleurs.fr auth.jitsi.deuxfleurs.fr
+EOF
+
+cd /srv/jvb
+
+cat > ~/.sip-communicator/sip-communicator.properties <<EOF
+org.jitsi.impl.neomedia.transform.srtp.SRTPCryptoContext.checkReplay=false
+# The videobridge uses 443 by default with 4443 as a fallback, but since we're already
+# running nginx on 443 in this example doc, we specify 4443 manually to avoid a race condition
+org.jitsi.videobridge.TCP_HARVESTER_PORT=4443
+org.ice4j.ice.harvest.NAT_HARVESTER_LOCAL_ADDRESS=${JITSI_NAT_LOCAL_IP}
+org.ice4j.ice.harvest.NAT_HARVESTER_PUBLIC_ADDRESS=${JITSI_NAT_PUBLIC_IP}
+EOF
+
+./jvb.sh \
+ --host=${JITSI_PROSODY_HOST} \
+ --domain=jitsi.deuxfleurs.fr \
+ --port=5347 \
+ --secret=${JITSI_SECRET_VIDEOBRIDGE}