mirror of
https://github.com/rubenhensen/k8scd.git
synced 2026-09-17 02:12:55 +02:00
Whisper-webui default-parameters writable 7
This commit is contained in:
@@ -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
|
||||||
@@ -67,6 +58,4 @@ spec:
|
|||||||
claimName: app-claim1
|
claimName: app-claim1
|
||||||
- name: config-volume
|
- name: config-volume
|
||||||
configMap:
|
configMap:
|
||||||
name: whisper-webui-config
|
name: whisper-webui-config
|
||||||
- name: writable-config
|
|
||||||
emptyDir: {}
|
|
||||||
Reference in New Issue
Block a user