From a67d8df7e62abd3bcf47cf065d98cbb39e94246f Mon Sep 17 00:00:00 2001 From: Ruben Hensen Date: Tue, 4 Mar 2025 15:41:36 +0100 Subject: [PATCH] Whisper-webui default-parameters writable 7 --- whisper-webui/app-deployment.yaml | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/whisper-webui/app-deployment.yaml b/whisper-webui/app-deployment.yaml index c83cc24..80f568a 100644 --- a/whisper-webui/app-deployment.yaml +++ b/whisper-webui/app-deployment.yaml @@ -22,15 +22,6 @@ spec: labels: io.kompose.service: app 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: - command: - sh @@ -40,7 +31,7 @@ spec: 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 + cp /myconfig/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 @@ -55,8 +46,8 @@ spec: name: app-claim0 - mountPath: /Whisper-WebUI/outputs name: app-claim1 - - name: writable-config - mountPath: /writable-configs + - name: config-volume + mountPath: /myconfig restartPolicy: Always volumes: - name: app-claim0 @@ -67,6 +58,4 @@ spec: claimName: app-claim1 - name: config-volume configMap: - name: whisper-webui-config - - name: writable-config - emptyDir: {} \ No newline at end of file + name: whisper-webui-config \ No newline at end of file