mirror of
https://github.com/truenas/charts.git
synced 2026-04-13 13:40:17 +08:00
conditionally add ffmpeg
This commit is contained in:
@@ -104,6 +104,12 @@ questions:
|
||||
type: path
|
||||
default: "/var/www/html/data"
|
||||
required: true
|
||||
- variable: install_ffmpeg
|
||||
label: "Install ffmpeg"
|
||||
description: "Automatically Install ffmpeg when the container starts"
|
||||
schema:
|
||||
type: boolean
|
||||
default: false
|
||||
|
||||
- variable: cronjob
|
||||
description: "Setup cronjob for nextcloud"
|
||||
|
||||
@@ -82,6 +82,7 @@ spec: {{ include "common.deployment.common_spec" . | nindent 2 }}
|
||||
- name: extrappvolume-{{ $index }}
|
||||
mountPath: {{ $hostPathConfiguration.mountPath }}
|
||||
{{ end }}
|
||||
{{- if .Values.nextcloud.install_ffmpeg }}
|
||||
lifecycle:
|
||||
postStart:
|
||||
exec:
|
||||
@@ -94,6 +95,7 @@ spec: {{ include "common.deployment.common_spec" . | nindent 2 }}
|
||||
apt install -y --no-install-recommends \
|
||||
ffmpeg || echo "Failed to install ffmpeg"
|
||||
echo "Finished."
|
||||
{{- end }}
|
||||
{{ include "common.networking.dnsConfiguration" .Values | nindent 6 }}
|
||||
volumes:
|
||||
- name: nginx-configuration
|
||||
|
||||
@@ -19,6 +19,7 @@ nextcloud:
|
||||
host: nextcloud.kube.home
|
||||
password: changeme
|
||||
username: admin
|
||||
install_ffmpeg: true
|
||||
nginx:
|
||||
image:
|
||||
pullPolicy: IfNotPresent
|
||||
|
||||
Reference in New Issue
Block a user