Skip to content

Commit 846cba6

Browse files
committed
temp fix for retriever deployment
Signed-off-by: wwanarif <wan.abdul.hakim.b.wan.arif@intel.com>
1 parent 6862d57 commit 846cba6

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

studio-backend/app/templates/microsvc-composes/retriever-usvc.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
ports:
1010
- 7009:7000
1111
ipc: host
12+
entrypoint: /bin/sh -c "sed '/^from integrations/ { /from integrations.redis import OpeaRedisRetriever/! s/^/#/ }' opea_retrievers_microservice.py > /tmp/tmp_opea_retrievers_microservice.py && python /tmp/tmp_opea_retrievers_microservice.py"
1213
environment:
1314
no_proxy: ${no_proxy}
1415
http_proxy: ${http_proxy}

studio-backend/app/templates/microsvc-manifests/retriever-usvc.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ spec:
7171
name: config-{endpoint}
7272
containers:
7373
- name: retriever-usvc
74+
command: ["/bin/sh", "-c"]
75+
args:
76+
- sed '/^from integrations/ { /from integrations.redis import OpeaRedisRetriever/! s/^/#/ }' opea_retrievers_microservice.py > /tmp/tmp_opea_retrievers_microservice.py && python /tmp/tmp_opea_retrievers_microservice.py
7477
envFrom:
7578
- configMapRef:
7679
name: config-{endpoint}

0 commit comments

Comments
 (0)