[tdarr] Add environment variables to change the user running container (#1432)

* Add PUID and PGID environment variables
This commit is contained in:
Yonggan 2022-02-22 13:46:35 +01:00 committed by GitHub
parent 1477ff26c3
commit 18c032fcbf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 3 deletions

View File

@ -2,7 +2,7 @@ apiVersion: v2
appVersion: 2.00.10
description: Tdarr is a self hosted web-app for automating media library transcode/remux management and making sure your files are exactly how you need them to be in terms of codecs/streams/containers etc.
name: tdarr
version: 4.3.1
version: 4.4.0
keywords:
- transcoding
- remux
@ -23,5 +23,5 @@ dependencies:
version: 4.3.0
annotations:
artifacthub.io/changes: |
- kind: fixed
description: Fixed server container mountPath so that persistence actually works.
- kind: add
description: Explicitly Add PUID and PGID environment variables for server and node.

View File

@ -19,6 +19,10 @@ additionalContainers:
value: "{{ .Values.service.main.ports.server.port }}"
- name: ffmpegPath
value: {{ default "" .Values.env.ffmpegPath }}
- name: PUID
value: {{ (.Values.env.PUID | quote) }}
- name: PGID
value: {{ (.Values.env.PGID | quote) }}
volumeMounts:
{{ if .Values.persistence.config.enabled }}
- name: config

View File

@ -26,6 +26,10 @@ env:
serverPort: "{{ .Values.service.main.ports.server.port }}"
# -- Allow override for the pre-compiled tdarr ffmpeg binary
ffmpegPath: ""
# -- Set the container user id
PUID: "1000"
# -- Set the container group id
PGID: "1000"
# -- Configures service settings for the chart.
# @default -- See values.yaml