Whisper-webui default-parameters writable 7

This commit is contained in:
Ruben Hensen
2025-03-04 15:41:36 +01:00
parent dede069ecf
commit a67d8df7e6
+3 -14
View File
@@ -22,15 +22,6 @@ spec:
labels: labels:
io.kompose.service: app io.kompose.service: app
spec: spec:
initContainers:
- name: config-init
image: busybox
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: writable-config
mountPath: /writable-configs
containers: containers:
- command: - command:
- sh - sh
@@ -40,7 +31,7 @@ spec:
if [ -f /Whisper-WebUI/configs/default_parameters.yaml ]; then if [ -f /Whisper-WebUI/configs/default_parameters.yaml ]; then
rm /Whisper-WebUI/configs/default_parameters.yaml rm /Whisper-WebUI/configs/default_parameters.yaml
fi fi
ln -s /writable-configs/default_parameters.yaml /Whisper-WebUI/configs/default_parameters.yaml cp /myconfig/default_parameters.yaml /Whisper-WebUI/configs/default_parameters.yaml
# Start the application # Start the application
python app.py --server_port 7860 --server_name 0.0.0.0 python app.py --server_port 7860 --server_name 0.0.0.0
image: hebury/whisper-webui:latest image: hebury/whisper-webui:latest
@@ -55,8 +46,8 @@ spec:
name: app-claim0 name: app-claim0
- mountPath: /Whisper-WebUI/outputs - mountPath: /Whisper-WebUI/outputs
name: app-claim1 name: app-claim1
- name: writable-config - name: config-volume
mountPath: /writable-configs mountPath: /myconfig
restartPolicy: Always restartPolicy: Always
volumes: volumes:
- name: app-claim0 - name: app-claim0
@@ -68,5 +59,3 @@ spec:
- name: config-volume - name: config-volume
configMap: configMap:
name: whisper-webui-config name: whisper-webui-config
- name: writable-config
emptyDir: {}