⬆️ music-transcode app-template v2

This commit is contained in:
auricom
2023-11-02 20:51:16 +01:00
parent 21d3190606
commit 2408e20c0d

View File

@@ -10,7 +10,7 @@ spec:
chart: chart:
spec: spec:
chart: app-template chart: app-template
version: 1.5.1 version: 2.0.3
sourceRef: sourceRef:
kind: HelmRepository kind: HelmRepository
name: bjw-s name: bjw-s
@@ -27,61 +27,63 @@ spec:
uninstall: uninstall:
keepHistory: false keepHistory: false
values: values:
controller: controllers:
type: cronjob main:
cronjob: type: cronjob
concurrencyPolicy: Forbid cronjob:
schedule: "@daily" concurrencyPolicy: Forbid
restartPolicy: OnFailure schedule: "@daily"
image: containers:
repository: ghcr.io/auricom/freac main:
tag: 1.1.7@sha256:2f7f1997e5437122fe0140601e0fe609777654243b0f2903f3d937794f6e31e0 image:
command: repository: ghcr.io/auricom/freac
- "/bin/bash" tag: 1.1.7@sha256:2f7f1997e5437122fe0140601e0fe609777654243b0f2903f3d937794f6e31e0
- "-c" command:
- | - "/bin/bash"
#!/bin/bash - "-c"
- |
#!/bin/bash
set -o errexit set -o errexit
set -o nounset set -o nounset
cd /app cd /app
/app/transcode.sh -c /app/transcode.sh -c
/app/transcode.sh -r /app/transcode.sh -r
env: env:
TRANSCODE_INPUT_DIR: /mnt/music/ TRANSCODE_INPUT_DIR: /mnt/music/
TRANSCODE_OUTPUT_DIR: /mnt/music_transcoded/ TRANSCODE_OUTPUT_DIR: /mnt/music_transcoded/
TRANSCODE_FREAC_BIN: /app/freaccmd TRANSCODE_FREAC_BIN: /app/freaccmd
service: service:
main: main:
enabled: false enabled: false
persistence: persistence:
scripts: scripts:
enabled: true
type: configMap type: configMap
name: music-transcode-configmap name: music-transcode-configmap
subPath: transcode.sh
mountPath: /app/transcode.sh
defaultMode: 0775 defaultMode: 0775
readOnly: true globalMounts:
- path: /app/transcode.sh
subPath: transcode.sh
readOnly: true
exclude: exclude:
enabled: true
type: configMap type: configMap
name: music-transcode-configmap name: music-transcode-configmap
subPath: transcode_exclude.cfg
mountPath: /app/transcode_exclude.cfg
defaultMode: 0775 defaultMode: 0775
readOnly: true globalMounts:
- path: /app/transcode_exclude.cfg
subPath: transcode_exclude.cfg
readOnly: true
music: music:
enabled: true
type: nfs type: nfs
mountPath: /mnt/music
path: /mnt/storage/music path: /mnt/storage/music
server: ${LOCAL_LAN_TRUENAS} server: ${LOCAL_LAN_TRUENAS}
globalMounts:
- path: /mnt/music
music-transcoded: music-transcoded:
enabled: true
type: nfs type: nfs
mountPath: /mnt/music_transcoded
path: /mnt/storage/music_transcoded path: /mnt/storage/music_transcoded
server: ${LOCAL_LAN_TRUENAS} server: ${LOCAL_LAN_TRUENAS}
globalMounts:
- path: /mnt/music_transcoded