From 49919398ed8dbceda529c2fbd2a94473014b95d6 Mon Sep 17 00:00:00 2001 From: Stavros kois Date: Fri, 3 Feb 2023 14:51:02 +0200 Subject: [PATCH] hook to install ffmpeg --- charts/nextcloud/1.6.16/templates/deployment.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/charts/nextcloud/1.6.16/templates/deployment.yaml b/charts/nextcloud/1.6.16/templates/deployment.yaml index 593e8db419..458bf08897 100644 --- a/charts/nextcloud/1.6.16/templates/deployment.yaml +++ b/charts/nextcloud/1.6.16/templates/deployment.yaml @@ -82,6 +82,18 @@ spec: {{ include "common.deployment.common_spec" . | nindent 2 }} - name: extrappvolume-{{ $index }} mountPath: {{ $hostPathConfiguration.mountPath }} {{ end }} + lifecycle: + postStart: + exec: + command: + - /bin/sh + - -c + - | + echo "Installing ffmpeg..." + apt update && \ + apt install -y --no-install-recommends \ + ffmpeg || echo "Failed to install ffmpeg" + echo "Finished." {{ include "common.networking.dnsConfiguration" .Values | nindent 6 }} volumes: - name: nginx-configuration