Initial import
This commit is contained in:
12
jvb/Dockerfile
Normal file
12
jvb/Dockerfile
Normal file
@@ -0,0 +1,12 @@
|
||||
FROM jitsi/base-java
|
||||
|
||||
RUN \
|
||||
apt-dpkg-wrap apt-get update && \
|
||||
apt-dpkg-wrap apt-get install -y jitsi-videobridge && \
|
||||
apt-cleanup
|
||||
|
||||
COPY rootfs/ /
|
||||
|
||||
VOLUME /config
|
||||
|
||||
EXPOSE 10000/udp 4443
|
||||
4
jvb/Makefile
Normal file
4
jvb/Makefile
Normal file
@@ -0,0 +1,4 @@
|
||||
build:
|
||||
docker build -t jitsi/jvb .
|
||||
|
||||
.PHONY: build
|
||||
14
jvb/rootfs/defaults/logging.properties
Normal file
14
jvb/rootfs/defaults/logging.properties
Normal file
@@ -0,0 +1,14 @@
|
||||
handlers= java.util.logging.ConsoleHandler
|
||||
|
||||
java.util.logging.ConsoleHandler.level = ALL
|
||||
java.util.logging.ConsoleHandler.formatter = net.java.sip.communicator.util.ScLogFormatter
|
||||
|
||||
net.java.sip.communicator.util.ScLogFormatter.programname=JVB
|
||||
|
||||
.level=INFO
|
||||
|
||||
org.jitsi.videobridge.xmpp.ComponentImpl.level=FINE
|
||||
|
||||
# All of the INFO level logs from MediaStreamImpl are unnecessary in the context of jitsi-videobridge.
|
||||
org.jitsi.impl.neomedia.MediaStreamImpl.level=WARNING
|
||||
|
||||
3
jvb/rootfs/defaults/sip-communicator.properties
Normal file
3
jvb/rootfs/defaults/sip-communicator.properties
Normal file
@@ -0,0 +1,3 @@
|
||||
org.jitsi.videobridge.AUTHORIZED_SOURCE_REGEXP=${JICOFO_AUTH_USER}@auth.${XMPP_DOMAIN}/.*
|
||||
org.jitsi.videobridge.TCP_HARVESTER_PORT=4443
|
||||
org.ice4j.ice.harvest.STUN_MAPPING_HARVESTER_ADDRESSES=${JVB_STUN_SERVERS}
|
||||
15
jvb/rootfs/etc/cont-init.d/10-config
Normal file
15
jvb/rootfs/etc/cont-init.d/10-config
Normal file
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
if [[ ! -f /config/sip-communicator.properties ]]; then
|
||||
cp /defaults/sip-communicator.properties /config
|
||||
sed -i \
|
||||
-e "s,\${XMPP_DOMAIN},$XMPP_DOMAIN,g" \
|
||||
-e "s,\${JICOFO_AUTH_USER},$JICOFO_AUTH_USER,g" \
|
||||
-e "s#\${JVB_STUN_SERVERS}#$JVB_STUN_SERVERS#g" \
|
||||
/config/sip-communicator.properties
|
||||
fi
|
||||
|
||||
if [[ ! -f /config/logging.properties ]]; then
|
||||
cp /defaults/logging.properties /config
|
||||
fi
|
||||
|
||||
8
jvb/rootfs/etc/services.d/jvb/run
Normal file
8
jvb/rootfs/etc/services.d/jvb/run
Normal file
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
JAVA_SYS_PROPS="-Dnet.java.sip.communicator.SC_HOME_DIR_LOCATION=/ -Dnet.java.sip.communicator.SC_HOME_DIR_NAME=config -Djava.util.logging.config.file=/config/logging.properties"
|
||||
DAEMON=/usr/share/jitsi-videobridge/jvb.sh
|
||||
DAEMON_OPTS="--domain=$XMPP_DOMAIN --host=$XMPP_SERVER --port=5347 --secret=$JVB_COMPONENT_SECRET"
|
||||
|
||||
exec s6-setuidgid jvb /bin/bash -c "JAVA_SYS_PROPS=\"$JAVA_SYS_PROPS\" exec $DAEMON $DAEMON_OPTS"
|
||||
|
||||
Reference in New Issue
Block a user