Allow UI modifications through mount

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2020-04-04 20:44:51 +02:00
parent b1a966b452
commit 6662efd965
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E
3 changed files with 16 additions and 0 deletions

View file

@ -21,6 +21,8 @@ COPY services /etc/services.d
# Application expose
EXPOSE 80/tcp
VOLUME ["/ui"]
# Hopefully has some sense?
EXPOSE 10000/udp 10001/udp 10002/udp 10003/udp 10004/udp 10005/udp 10006/udp 10007/udp 10008/udp 10009/udp 10010/udp

View file

@ -8,6 +8,8 @@ packages_build=(
packages_install=(
jitsi-meet
patch
rsync
)
no_postinst_pkgs=(

View file

@ -40,3 +40,15 @@ update-ca-certificates -f
# Generate user for admin
prosodyctl register focus "auth.${JITSI_DOMAIN}" "${JITSI_ADMIN_SECRET}"
# Overwrite UI files from mount
[ -d /ui/files ] && rsync -rv /ui/files/ /usr/share/jitsi-meet/
[ -d /ui/patches ] && {
pushd /usr/share/jitsi-meet
for patch_file in /ui/patches/*.patch; do
patch -b -i "${patch_file}" -p0
done
popd
}