Skip to content

Commit d432cbe

Browse files
Merge pull request #35 from redhat-community-ai-tools/GENIE-1062/story/hexagonal-architecture-migration
hexagonal Architecture Migration
2 parents f3d1b76 + cdf7ee9 commit d432cbe

File tree

169 files changed

+12108
-12
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

169 files changed

+12108
-12
lines changed

ci/pipeline-build.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ pipeline {
168168
when { expression { params.build_dataflow_backend } }
169169
steps {
170170
script {
171-
def component = "backend"
171+
def component = "rag"
172172
def module = ""
173173
dir("${buildParams.DevRoot}/${params.BRANCH}/") {
174174
cleanWorkspace(component)

helm/dataflow/unifai-dataflow-celery/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ replicaCount: 1
1717

1818
# This sets the container image more information can be found here: https://kubernetes.io/docs/concepts/containers/images/
1919
image:
20-
repository: images.paas.redhat.com/unifai/backend
20+
repository: images.paas.redhat.com/unifai/rag
2121
tag: latest
2222
pullPolicy: Always
2323

helm/dataflow/unifai-dataflow-server/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ replicaCount: 1
1717

1818
# This sets the container image more information can be found here: https://kubernetes.io/docs/concepts/containers/images/
1919
image:
20-
repository: images.paas.redhat.com/unifai/backend
20+
repository: images.paas.redhat.com/unifai/rag
2121
tag: latest
2222
pullPolicy: Always
2323

helm/values/dataflow-resource-values.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ unifai_dataflow_server:
77
debug: false
88
replicaCount: 1
99
image:
10-
repository: images.paas.redhat.com/unifai/backend
10+
repository: images.paas.redhat.com/unifai/rag
1111
tag: "latest"
1212
pullPolicy: Always
1313
service:
@@ -31,7 +31,7 @@ unifai_dataflow_celery:
3131
debug: false
3232
replicaCount: 1
3333
image:
34-
repository: images.paas.redhat.com/unifai/backend
34+
repository: images.paas.redhat.com/unifai/rag
3535
tag: "latest"
3636
pullPolicy: Always
3737
env:

rag/DIAGRAMS.md

Lines changed: 440 additions & 0 deletions
Large diffs are not rendered by default.

rag/Dockerfile

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
FROM registry.access.redhat.com/ubi9/python-311
2+
3+
USER root
4+
RUN dnf update -y && dnf install -y vim less iputils mesa-libGL && dnf clean all
5+
6+
USER default
7+
8+
# Copy all backend files (including entrypoint.sh) and global_utils
9+
ADD --chown=default:root --chmod=777 ./rag $HOME/rag
10+
ADD --chown=default:root --chmod=777 ./global_utils $HOME/global_utils
11+
12+
WORKDIR $HOME/rag
13+
14+
# Ensure entrypoint is executable
15+
RUN chmod +x entrypoint.sh && chmod -R g+w .
16+
17+
RUN pip3 install --upgrade pip virtualenv
18+
RUN python3 -m venv venv
19+
20+
# Activate venv and install requirements
21+
RUN /bin/bash -c "source venv/bin/activate && \
22+
pip install -e . && \
23+
pip install -e ../global_utils/"
24+
25+
ENTRYPOINT ["./entrypoint.sh"]

0 commit comments

Comments
 (0)