@@ -47,37 +47,37 @@ spec:
4747 labels :
4848 app : " {endpoint}"
4949 spec :
50- initContainers :
51- - name : agentqna-tools
52- image : curlimages/curl:latest
53- command : ["/bin/sh", "-c"]
54- args :
55- - |
56- TOOLS_GIT_URL="https://github.com/opea-project/GenAIStudio/tree/main/studio-backend/app/templates/tools"
57- OWNER=$(echo ${TOOLS_GIT_URL} | sed -E 's|https://github.com/([^/]+)/([^/]+)/tree/([^/]+)/.*|\1|')
58- REPO=$(echo ${TOOLS_GIT_URL} | sed -E 's|https://github.com/([^/]+)/([^/]+)/tree/([^/]+)/.*|\2|')
59- BRANCH=$(echo ${TOOLS_GIT_URL} | sed -E 's|https://github.com/[^/]+/[^/]+/tree/([^/]+)/.*|\1|')
60- TOOLS_DIR=$(echo ${TOOLS_GIT_URL} | sed -E 's|https://github.com/[^/]+/[^/]+/tree/[^/]+/(.*?)/?$|\1|')
61- if [[ "${TOOLS_DIR: -1}" == "/" ]]; then TOOLS_DIR="${TOOLS_DIR%/}"; fi
62- DOWNLOAD_URL="https://codeload.github.com/${OWNER}/${REPO}/tar.gz/${BRANCH}"
63- curl "${DOWNLOAD_URL}" | tar -xz --strip-components=5 -C /home/user/tools/ "${REPO}-${BRANCH}/${TOOLS_DIR}"
50+ # initContainers:
51+ # - name: agentqna-tools
52+ # image: curlimages/curl:latest
53+ # command: ["/bin/sh", "-c"]
54+ # args:
55+ # - |
56+ # TOOLS_GIT_URL="https://github.com/opea-project/GenAIStudio/tree/main/studio-backend/app/templates/tools"
57+ # OWNER=$(echo ${TOOLS_GIT_URL} | sed -E 's|https://github.com/([^/]+)/([^/]+)/tree/([^/]+)/.*|\1|')
58+ # REPO=$(echo ${TOOLS_GIT_URL} | sed -E 's|https://github.com/([^/]+)/([^/]+)/tree/([^/]+)/.*|\2|')
59+ # BRANCH=$(echo ${TOOLS_GIT_URL} | sed -E 's|https://github.com/[^/]+/[^/]+/tree/([^/]+)/.*|\1|')
60+ # TOOLS_DIR=$(echo ${TOOLS_GIT_URL} | sed -E 's|https://github.com/[^/]+/[^/]+/tree/[^/]+/(.*?)/?$|\1|')
61+ # if [[ "${TOOLS_DIR: -1}" == "/" ]]; then TOOLS_DIR="${TOOLS_DIR%/}"; fi
62+ # DOWNLOAD_URL="https://codeload.github.com/${OWNER}/${REPO}/tar.gz/${BRANCH}"
63+ # curl "${DOWNLOAD_URL}" | tar -xz --strip-components=5 -C /home/user/tools/ "${REPO}-${BRANCH}/${TOOLS_DIR}"
6464
65- # Conditional wait for remote service based on llm_engine
66- if [ "$llm_engine" = "tgi" ]; then
67- until nc -z -v -w30 ${llm_endpoint_url#http://} 80; do
68- echo "Waiting for remote service...";
69- sleep 5;
70- done
71- fi
72- envFrom :
73- - configMapRef :
74- name : config-{endpoint}
75- # volumeMounts:
76- # - name: agent-tools
77- # mountPath: /home/user/tools/
78- securityContext :
79- runAsUser : 0
80- runAsGroup : 0
65+ # # Conditional wait for remote service based on llm_engine
66+ # if [ "$llm_engine" = "tgi" ]; then
67+ # until nc -z -v -w30 ${llm_endpoint_url#http://} 80; do
68+ # echo "Waiting for remote service...";
69+ # sleep 5;
70+ # done
71+ # fi
72+ # envFrom:
73+ # - configMapRef:
74+ # name: config-{endpoint}
75+ # volumeMounts:
76+ # - name: agent-tools
77+ # mountPath: /home/user/tools/
78+ # securityContext:
79+ # runAsUser: 0
80+ # runAsGroup: 0
8181 containers :
8282 - name : sql-agent-container
8383 image : ${REGISTRY}/agent:${TAG}
9393 ports :
9494 - containerPort : 9096
9595 # volumeMounts:
96- # - name: agent-tools
97- # mountPath: /home/user/tools/
96+ # - name: agent-tools
97+ # mountPath: /home/user/tools/
9898 envFrom :
9999 - configMapRef :
100100 name : config-{endpoint}
0 commit comments