Whisper-webui default-parameters writable 6

This commit is contained in:
Ruben Hensen
2025-03-04 15:38:47 +01:00
parent 81e845cc61
commit dede069ecf
+16 -12
View File
@@ -25,20 +25,24 @@ spec:
initContainers:
- name: config-init
image: busybox
command: ['sh', '-c', 'mkdir -p /whisper-configs && cp /config-readonly/default_parameters.yaml /whisper-configs/ && chmod 666 /whisper-configs/default_parameters.yaml']
command: ['sh', '-c', 'cp /config-readonly/default_parameters.yaml /writable-configs/ && chmod 666 /writable-configs/default_parameters.yaml']
volumeMounts:
- name: config-volume
mountPath: /config-readonly
- name: configs-dir
mountPath: /whisper-configs
- name: writable-config
mountPath: /writable-configs
containers:
- command:
- python
- app.py
- --server_port
- "7860"
- --server_name
- 0.0.0.0
- sh
- -c
- |
# Replace the original file with a symlink to our writable version
if [ -f /Whisper-WebUI/configs/default_parameters.yaml ]; then
rm /Whisper-WebUI/configs/default_parameters.yaml
fi
ln -s /writable-configs/default_parameters.yaml /Whisper-WebUI/configs/default_parameters.yaml
# Start the application
python app.py --server_port 7860 --server_name 0.0.0.0
image: hebury/whisper-webui:latest
name: app
ports:
@@ -51,8 +55,8 @@ spec:
name: app-claim0
- mountPath: /Whisper-WebUI/outputs
name: app-claim1
- name: configs-dir
mountPath: /Whisper-WebUI/configs
- name: writable-config
mountPath: /writable-configs
restartPolicy: Always
volumes:
- name: app-claim0
@@ -64,5 +68,5 @@ spec:
- name: config-volume
configMap:
name: whisper-webui-config
- name: configs-dir
- name: writable-config
emptyDir: {}