Actualizado dvfile.yaml para desplegar en OKD

This commit is contained in:
Root
2025-05-31 11:29:28 +02:00
parent a27317e10d
commit 83b0597a66

View File

@@ -26,8 +26,12 @@ components:
# Receiver service # Receiver service
- name: receiver - name: receiver
image:
imageName: receiver:latest
dockerfile:
uri: whisper-distributed/receiver/Dockerfile
buildContext: whisper-distributed/receiver
container: container:
image: receiver:latest
endpoints: endpoints:
- name: http - name: http
targetPort: 8000 targetPort: 8000
@@ -40,8 +44,12 @@ components:
# Splitter service # Splitter service
- name: splitter - name: splitter
image:
imageName: splitter:latest
dockerfile:
uri: whisper-distributed/splitter/Dockerfile
buildContext: whisper-distributed/splitter
container: container:
image: splitter:latest
endpoints: endpoints:
- name: http - name: http
targetPort: 8000 targetPort: 8000
@@ -52,8 +60,12 @@ components:
# Processor1 service # Processor1 service
- name: processor1 - name: processor1
image:
imageName: processor:latest
dockerfile:
uri: whisper-distributed/processor/Dockerfile
buildContext: whisper-distributed/processor
container: container:
image: processor:latest
env: env:
- name: PROCESSOR_ID - name: PROCESSOR_ID
value: "1" value: "1"
@@ -67,8 +79,12 @@ components:
# Processor2 service # Processor2 service
- name: processor2 - name: processor2
image:
imageName: processor2:latest
dockerfile:
uri: whisper-distributed/processor/Dockerfile
buildContext: whisper-distributed/processor
container: container:
image: processor:latest
env: env:
- name: PROCESSOR_ID - name: PROCESSOR_ID
value: "2" value: "2"
@@ -82,8 +98,12 @@ components:
# Unifier service # Unifier service
- name: unifier - name: unifier
image:
imageName: unifier:latest
dockerfile:
uri: whisper-distributed/unifier/Dockerfile
buildContext: whisper-distributed/unifier
container: container:
image: unifier:latest
endpoints: endpoints:
- name: http - name: http
targetPort: 8000 targetPort: 8000
@@ -111,43 +131,4 @@ components:
volume: volume:
size: 2Gi size: 2Gi
# Build commands for each service # Events - removed preStart build commands since images build automatically
commands:
# Build commands
- id: build-receiver
exec:
component: receiver
workingDir: /projects/receiver
commandLine: docker build -t receiver:latest .
- id: build-splitter
exec:
component: splitter
workingDir: /projects/splitter
commandLine: docker build -t splitter:latest .
- id: build-processor
exec:
component: processor1
workingDir: /projects/processor
commandLine: docker build -t processor:latest .
- id: build-unifier
exec:
component: unifier
workingDir: /projects/unifier
commandLine: docker build -t unifier:latest .
# Composite build command
- id: build-all
composite:
commands:
- build-receiver
- build-splitter
- build-processor
- build-unifier
# Events
events:
preStart:
- build-all