aboutsummaryrefslogtreecommitdiff
path: root/cluster/prod/app/jitsi/build/jitsi-meet
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2023-02-02 14:48:59 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2023-02-02 14:48:59 +0100
commit2d6616195f011a131ad166aebdceb771c9fc573f (patch)
treeed681bfe7a28d31603ef3c3275bda4e004d3cd80 /cluster/prod/app/jitsi/build/jitsi-meet
parent6445d55e3e651d1728f722377c65504c4fe91cf6 (diff)
downloadnixcfg-2d6616195f011a131ad166aebdceb771c9fc573f.tar.gz
nixcfg-2d6616195f011a131ad166aebdceb771c9fc573f.zip
upgrade the building logic
Diffstat (limited to 'cluster/prod/app/jitsi/build/jitsi-meet')
-rw-r--r--cluster/prod/app/jitsi/build/jitsi-meet/0001-allow-broken-openssl-routines.patch25
-rw-r--r--cluster/prod/app/jitsi/build/jitsi-meet/Dockerfile6
2 files changed, 30 insertions, 1 deletions
diff --git a/cluster/prod/app/jitsi/build/jitsi-meet/0001-allow-broken-openssl-routines.patch b/cluster/prod/app/jitsi/build/jitsi-meet/0001-allow-broken-openssl-routines.patch
new file mode 100644
index 0000000..544069c
--- /dev/null
+++ b/cluster/prod/app/jitsi/build/jitsi-meet/0001-allow-broken-openssl-routines.patch
@@ -0,0 +1,25 @@
+From 5e890bd4dd378913a2dabaf4468ce1839b84ec4f Mon Sep 17 00:00:00 2001
+From: Quentin Dufour <quentin@deuxfleurs.fr>
+Date: Thu, 2 Feb 2023 13:51:27 +0100
+Subject: [PATCH] allow broken openssl routines
+
+---
+ Makefile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Makefile b/Makefile
+index 040f8c977..bcbf82658 100644
+--- a/Makefile
++++ b/Makefile
+@@ -27,7 +27,7 @@ endif
+ all: compile deploy clean
+
+ compile:
+- NODE_OPTIONS=--max-old-space-size=8192 \
++ NODE_OPTIONS="--max-old-space-size=8192 --openssl-legacy-provider" \
+ $(WEBPACK)
+
+ clean:
+--
+2.38.1
+
diff --git a/cluster/prod/app/jitsi/build/jitsi-meet/Dockerfile b/cluster/prod/app/jitsi/build/jitsi-meet/Dockerfile
index d8c7cf8..2e629e9 100644
--- a/cluster/prod/app/jitsi/build/jitsi-meet/Dockerfile
+++ b/cluster/prod/app/jitsi/build/jitsi-meet/Dockerfile
@@ -2,13 +2,17 @@ FROM debian:bookworm AS builder
RUN apt-get update && \
apt-get install -y curl && \
- curl -sL https://deb.nodesource.com/setup_16.x | bash - && \
+ curl -sL https://deb.nodesource.com/setup_19.x | bash - && \
apt-get install -y git nodejs make git unzip
ARG MEET_TAG
RUN git clone --depth 1 --branch ${MEET_TAG} https://github.com/jitsi/jitsi-meet
WORKDIR jitsi-meet
+# @FIXME read the following SO post to understand why we declare this option
+# https://stackoverflow.com/a/73027407
+COPY *.patch .
+RUN git apply 0001-allow-broken-openssl-routines.patch
RUN npm install && \
make