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: initContainers:
- name: config-init - name: config-init
image: busybox 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: volumeMounts:
- name: config-volume - name: config-volume
mountPath: /config-readonly mountPath: /config-readonly
- name: configs-dir - name: writable-config
mountPath: /whisper-configs mountPath: /writable-configs
containers: containers:
- command: - command:
- python - sh
- app.py - -c
- --server_port - |
- "7860" # Replace the original file with a symlink to our writable version
- --server_name if [ -f /Whisper-WebUI/configs/default_parameters.yaml ]; then
- 0.0.0.0 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 image: hebury/whisper-webui:latest
name: app name: app
ports: ports:
@@ -51,8 +55,8 @@ spec:
name: app-claim0 name: app-claim0
- mountPath: /Whisper-WebUI/outputs - mountPath: /Whisper-WebUI/outputs
name: app-claim1 name: app-claim1
- name: configs-dir - name: writable-config
mountPath: /Whisper-WebUI/configs mountPath: /writable-configs
restartPolicy: Always restartPolicy: Always
volumes: volumes:
- name: app-claim0 - name: app-claim0
@@ -64,5 +68,5 @@ spec:
- name: config-volume - name: config-volume
configMap: configMap:
name: whisper-webui-config name: whisper-webui-config
- name: configs-dir - name: writable-config
emptyDir: {} emptyDir: {}