mirror of
https://github.com/truenas/charts.git
synced 2026-04-04 19:29:22 +08:00
Publish new changes in catalog
This commit is contained in:
@@ -4,7 +4,7 @@ description: A file sharing server that puts the control and security of your ow
|
||||
annotations:
|
||||
title: Nextcloud
|
||||
type: application
|
||||
version: 1.6.31
|
||||
version: 1.6.32
|
||||
apiVersion: v2
|
||||
appVersion: 27.0.0
|
||||
kubeVersion: '>=1.16.0-0'
|
||||
@@ -14,6 +14,7 @@ nextcloud:
|
||||
datadir: /var/www/html/data
|
||||
host: nextcloud.kube.home
|
||||
install_ffmpeg: true
|
||||
install_smbclient: true
|
||||
password: changeme
|
||||
username: admin
|
||||
postgresAppVolumeMounts:
|
||||
@@ -110,6 +110,12 @@ questions:
|
||||
schema:
|
||||
type: boolean
|
||||
default: false
|
||||
- variable: install_smbclient
|
||||
label: "Install smbclient"
|
||||
description: "Automatically Install smbclient when the container starts"
|
||||
schema:
|
||||
type: boolean
|
||||
default: false
|
||||
|
||||
- variable: cronjob
|
||||
description: "Setup cronjob for nextcloud"
|
||||
@@ -122,21 +122,34 @@ spec: {{ include "common.deployment.common_spec" . | nindent 2 }}
|
||||
failureThreshold: 5
|
||||
successThreshold: 1
|
||||
startupProbe:
|
||||
{{- if .Values.nextcloud.install_ffmpeg }}
|
||||
{{ $cmds := list }}
|
||||
{{ if .Values.nextcloud.install_ffmpeg }}
|
||||
{{ $cmds = mustAppend $cmds "ffmpeg" }}
|
||||
{{ end }}
|
||||
{{ if .Values.nextcloud.install_smbclient }}
|
||||
{{ $cmds = mustAppend $cmds "smbclient" }}
|
||||
{{ end }}
|
||||
{{ if $cmds }}
|
||||
exec:
|
||||
command:
|
||||
- /bin/sh
|
||||
- -c
|
||||
- |
|
||||
command -v ffmpeg /dev/null 2>&1 || exit 1
|
||||
{{- else }}
|
||||
commands_to_check={{ join " " $cmds }}
|
||||
for comm in $commands_to_check; do
|
||||
if ! command -v $comm /dev/null 2>&1; then
|
||||
echo "Command $comm not found"
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
{{ else }}
|
||||
httpGet:
|
||||
path: /status.php
|
||||
port: http
|
||||
httpHeaders:
|
||||
- name: Host
|
||||
value: localhost
|
||||
{{- end }}
|
||||
{{ end }}
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 5
|
||||
@@ -168,7 +181,7 @@ spec: {{ include "common.deployment.common_spec" . | nindent 2 }}
|
||||
- name: extrappvolume-{{ $index }}
|
||||
mountPath: {{ $hostPathConfiguration.mountPath }}
|
||||
{{ end }}
|
||||
{{- if .Values.nextcloud.install_ffmpeg }}
|
||||
{{ if $cmds }}
|
||||
lifecycle:
|
||||
postStart:
|
||||
exec:
|
||||
@@ -176,12 +189,12 @@ spec: {{ include "common.deployment.common_spec" . | nindent 2 }}
|
||||
- /bin/sh
|
||||
- -c
|
||||
- |
|
||||
echo "Installing ffmpeg..."
|
||||
echo "Installing {{ join " " $cmds }}..."
|
||||
apt update && \
|
||||
apt install -y --no-install-recommends \
|
||||
ffmpeg || echo "Failed to install ffmpeg"
|
||||
{{ join " " $cmds }} || echo "Failed to install binary/binaries"
|
||||
echo "Finished."
|
||||
{{- end }}
|
||||
{{ end }}
|
||||
{{ include "common.networking.dnsConfiguration" .Values | nindent 6 }}
|
||||
volumes:
|
||||
- name: nginx-configuration
|
||||
Reference in New Issue
Block a user