From 1788a4cf63b1a442c046539ffacd63b40a79b6a5 Mon Sep 17 00:00:00 2001 From: thorstenspille Date: Sun, 12 Feb 2023 15:28:59 +0100 Subject: [PATCH] Add jitsi-meet container --- src/jitsi/constants-service.conf | 26 ++++++++++++++++++++++++++ src/jitsi/install-service.sh | 17 +++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 src/jitsi/constants-service.conf create mode 100644 src/jitsi/install-service.sh diff --git a/src/jitsi/constants-service.conf b/src/jitsi/constants-service.conf new file mode 100644 index 0000000..58e0e40 --- /dev/null +++ b/src/jitsi/constants-service.conf @@ -0,0 +1,26 @@ +#!/bin/bash + +# Authors: +# (C) 2021 Idea an concept by Christian Zengel +# (C) 2021 Script design and prototype by Markus Helmke +# (C) 2021 Script rework and documentation by Thorsten Spille + +# This file contains the project constants on service level + +# Debian Version, which will be installed +LXC_TEMPLATE_VERSION="debian-11-standard" + +# Create sharefs mountpoint +LXC_MP="0" + +# Create unprivileged container +LXC_UNPRIVILEGED="1" + +# enable nesting feature +LXC_NESTING="1" + +# Sets the minimum amount of RAM the service needs for operation +LXC_MEM_MIN=4096 + +# service dependent meta tags +SERVICE_TAGS="" \ No newline at end of file diff --git a/src/jitsi/install-service.sh b/src/jitsi/install-service.sh new file mode 100644 index 0000000..36365bb --- /dev/null +++ b/src/jitsi/install-service.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +set -euo pipefail + +# Authors: +# (C) 2021 Idea an concept by Christian Zengel +# (C) 2021 Script design and prototype by Markus Helmke +# (C) 2021 Script rework and documentation by Thorsten Spille + +source /root/functions.sh +source /root/zamba.conf +source /root/constants-service.conf + +curl https://download.jitsi.org/jitsi-key.gpg.key | gpg --dearmor | tee /usr/share/keyrings/jitsi-keyring.gpg +echo "deb [signed-by=/usr/share/keyrings/jitsi-keyring.gpg] https://download.jitsi.org stable/" | tee /etc/apt/sources.list.d/jitsi-stable.list +apt update +DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt install -y -qq jitsi-meet \ No newline at end of file