From 6662efd96541cab4ea6ed123e765aaad3e3193d6 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Sat, 4 Apr 2020 20:44:51 +0200 Subject: [PATCH] Allow UI modifications through mount Signed-off-by: Knut Ahlers --- Dockerfile | 2 ++ build.sh | 2 ++ setup.sh | 12 ++++++++++++ 3 files changed, 16 insertions(+) diff --git a/Dockerfile b/Dockerfile index f1a7433..ad1aba5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/build.sh b/build.sh index 7759459..4bd06f9 100755 --- a/build.sh +++ b/build.sh @@ -8,6 +8,8 @@ packages_build=( packages_install=( jitsi-meet + patch + rsync ) no_postinst_pkgs=( diff --git a/setup.sh b/setup.sh index 769ee7b..ac8e852 100644 --- a/setup.sh +++ b/setup.sh @@ -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 +}