Initial import
This commit is contained in:
11
jicofo/Dockerfile
Normal file
11
jicofo/Dockerfile
Normal file
@@ -0,0 +1,11 @@
|
||||
FROM jitsi/base-java
|
||||
|
||||
RUN \
|
||||
apt-dpkg-wrap apt-get update && \
|
||||
apt-dpkg-wrap apt-get install -y jicofo && \
|
||||
apt-cleanup
|
||||
|
||||
COPY rootfs/ /
|
||||
|
||||
VOLUME /config
|
||||
|
||||
4
jicofo/Makefile
Normal file
4
jicofo/Makefile
Normal file
@@ -0,0 +1,4 @@
|
||||
build:
|
||||
docker build -t jitsi/jicofo .
|
||||
|
||||
.PHONY: build
|
||||
1
jicofo/rootfs/defaults/sip-communicator.properties
Normal file
1
jicofo/rootfs/defaults/sip-communicator.properties
Normal file
@@ -0,0 +1 @@
|
||||
org.jitsi.jicofo.ALWAYS_TRUST_MODE_ENABLED=true
|
||||
6
jicofo/rootfs/etc/cont-init.d/10-config
Normal file
6
jicofo/rootfs/etc/cont-init.d/10-config
Normal file
@@ -0,0 +1,6 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
if [[ ! -f /config/sip-communicator.properties ]]; then
|
||||
cp /defaults/sip-communicator.properties /config
|
||||
fi
|
||||
|
||||
9
jicofo/rootfs/etc/services.d/jicofo/run
Normal file
9
jicofo/rootfs/etc/services.d/jicofo/run
Normal file
@@ -0,0 +1,9 @@
|
||||
#!/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"
|
||||
DAEMON=/usr/share/jicofo/jicofo.sh
|
||||
DAEMON_DIR=/usr/share/jicofo/
|
||||
DAEMON_OPTS="--domain=$XMPP_DOMAIN --host=$XMPP_SERVER --secret=$JICOFO_COMPONENT_SECRET --user_name=$JICOFO_AUTH_USER --user_domain="auth.$XMPP_DOMAIN" --user_password=$JICOFO_AUTH_PASSWORD"
|
||||
|
||||
exec s6-setuidgid jicofo /bin/bash -c "cd $DAEMON_DIR; JAVA_SYS_PROPS=\"$JAVA_SYS_PROPS\" exec $DAEMON $DAEMON_OPTS"
|
||||
|
||||
Reference in New Issue
Block a user