diff --git a/chatqna-ui/meta.yml b/chatqna-ui/meta.yml deleted file mode 100644 index 05addfa68f6a22dbf2c2a71b3f2adbe6de51e695..0000000000000000000000000000000000000000 --- a/chatqna-ui/meta.yml +++ /dev/null @@ -1,2 +0,0 @@ -1.0-oe2403lts: - path: chatqna-ui/1.0/24.03-lts/Dockerfile \ No newline at end of file diff --git a/chatqna/meta.yml b/chatqna/meta.yml deleted file mode 100644 index 0e837dafc37467d07d6434304c20078f525a92fa..0000000000000000000000000000000000000000 --- a/chatqna/meta.yml +++ /dev/null @@ -1,2 +0,0 @@ -1.0-oe2403lts: - path: chatqna/1.0/24.03-lts/Dockerfile diff --git a/dataprep-redis-langchain/meta.yml b/dataprep-redis-langchain/meta.yml deleted file mode 100644 index 079bce74ffbb5719b4156a40aee6ddce68072326..0000000000000000000000000000000000000000 --- a/dataprep-redis-langchain/meta.yml +++ /dev/null @@ -1,3 +0,0 @@ -0.3.4-redis5.1.1-oe2403lts: - path: dataprep-redis-langchain/0.3.4-redis5.1.1/24.03-lts/Dockerfile - arch: x86_64 \ No newline at end of file diff --git a/embedding-tei-langchain/meta.yml b/embedding-tei-langchain/meta.yml deleted file mode 100644 index 1192bf09cd84c37ebb648b33d258821771ccc8c4..0000000000000000000000000000000000000000 --- a/embedding-tei-langchain/meta.yml +++ /dev/null @@ -1,2 +0,0 @@ -0.3.3-oe2403lts: - path: embedding-tei-langchain/0.3.3/24.03-lts/Dockerfile \ No newline at end of file diff --git a/llm-docsum-tgi-langchain/meta.yml b/llm-docsum-tgi-langchain/meta.yml deleted file mode 100644 index c0e12e357fc2017069833e758e683a54cc17558e..0000000000000000000000000000000000000000 --- a/llm-docsum-tgi-langchain/meta.yml +++ /dev/null @@ -1,3 +0,0 @@ -0.3.0-oe2403lts: - path: llm-docsum-tgi-langchain/0.3.0/24.03-lts/Dockerfile - arch: x86_64 diff --git a/llm-faqgen-tgi-langchain/meta.yml b/llm-faqgen-tgi-langchain/meta.yml deleted file mode 100644 index 2ac0967cbda3cdf305de57e73a7eae0b94016eeb..0000000000000000000000000000000000000000 --- a/llm-faqgen-tgi-langchain/meta.yml +++ /dev/null @@ -1,3 +0,0 @@ -0.3.0-oe2403lts: - path: llm-faqgen-tgi-langchain/0.3.0/24.03-lts/Dockerfile - arch: x86_64 diff --git a/llm-vllm-langchain/meta.yml b/llm-vllm-langchain/meta.yml deleted file mode 100644 index 003354fcc90d78325384af072d832a0fd2940038..0000000000000000000000000000000000000000 --- a/llm-vllm-langchain/meta.yml +++ /dev/null @@ -1,5 +0,0 @@ -0.3.3-oe2403lts: - path: llm-vllm-langchain/0.3.3/24.03-lts/Dockerfile - arch: x86_64 -0.3.3-npu-oe2203lts: - path: llm-vllm-langchain/0.3.3-npu/24.03-lts/Dockerfile \ No newline at end of file diff --git a/opea/asr/1.0/24.03-LTS/Dockerfile b/opea/asr/1.0/24.03-LTS/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..b3a4c3611b71da7eb8265e36c0516ab08bbbcb0e --- /dev/null +++ b/opea/asr/1.0/24.03-LTS/Dockerfile @@ -0,0 +1,39 @@ +# Copyright (C) 2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 + +FROM openeuler/openeuler:24.03-lts + +# Update package manager and install Git +RUN yum update -y && \ + yum install -y --setopt=install_weak_deps=False \ + python-pip python \ + shadow-utils \ + git + +RUN useradd -m -s /bin/bash user && \ + mkdir -p /home/user && \ + chown -R user /home/user/ +USER user + +ENV LANG=C.UTF-8 +ARG ARCH=cpu + +WORKDIR /home/user/ +RUN git clone https://github.com/opea-project/GenAIComps.git && cd GenAIComps && git checkout v1.0 + +RUN cp -r GenAIComps/comps . && \ + rm -rf GenAIComps + +RUN pip install --no-cache-dir --upgrade pip && \ + if [ "${ARCH}" = "cpu" ]; then \ + pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu ; \ + pip install --no-cache-dir --extra-index-url https://download.pytorch.org/whl/cpu -r /home/user/comps/asr/whisper/requirements.txt ; \ + else \ + pip install --no-cache-dir -r /home/user/comps/asr/whisper/requirements.txt ; \ + fi + +ENV PYTHONPATH=$PYTHONPATH:/home/user + +WORKDIR /home/user/comps/asr/whisper + +ENTRYPOINT ["python", "asr.py"] \ No newline at end of file diff --git a/llm-tgi/meta.yml b/opea/asr/meta.yml similarity index 41% rename from llm-tgi/meta.yml rename to opea/asr/meta.yml index 5d5b47f7e5b26b58e36bb9443130e8e1641c99a2..86aea5c3011bbf8e7e70345b88a4eff30c594848 100644 --- a/llm-tgi/meta.yml +++ b/opea/asr/meta.yml @@ -1,3 +1,3 @@ 1.0-oe2403lts: - path: llm-tgi/1.0/24.03-lts/Dockerfile + path: asr/1.0/24.03-lts/Dockerfile arch: x86_64 \ No newline at end of file diff --git a/agent-langchain/0.3.0/24.03-lts/Dockerfile b/opea/audioqna/1.0/24.03-LTS/Dockerfile similarity index 66% rename from agent-langchain/0.3.0/24.03-lts/Dockerfile rename to opea/audioqna/1.0/24.03-LTS/Dockerfile index 5ccd0e1ca0468c8dc2d9bd026ef535282b25a441..d84616c09dd8e610c0d800caaf3e3e6e0ee9ce54 100644 --- a/agent-langchain/0.3.0/24.03-lts/Dockerfile +++ b/opea/audioqna/1.0/24.03-LTS/Dockerfile @@ -1,12 +1,14 @@ + + # Copyright (C) 2024 Intel Corporation # SPDX-License-Identifier: Apache-2.0 FROM openeuler/openeuler:24.03-lts RUN yum update -y && \ - yum install -y \ - --setopt=install_weak_deps=False \ + yum install -y --setopt=install_weak_deps=False \ python-pip python \ + shadow-utils \ mesa-libGL \ jemalloc-devel \ git @@ -15,10 +17,8 @@ RUN useradd -m -s /bin/bash user && \ mkdir -p /home/user && \ chown -R user /home/user/ -USER user - -WORKDIR /home/user -RUN git clone https://github.com/opea-project/GenAIComps.git +WORKDIR /home/user/ +RUN git clone https://github.com/opea-project/GenAIComps.git && cd GenAIComps && git checkout v1.0 WORKDIR /home/user/GenAIComps RUN pip install --no-cache-dir --upgrade pip && \ @@ -26,9 +26,13 @@ RUN pip install --no-cache-dir --upgrade pip && \ WORKDIR /home/user/ RUN git clone https://github.com/opea-project/GenAIExamples.git && cd GenAIExamples && git checkout v1.0 -RUN cp GenAIExamples/DocSum/docsum.py . +RUN cp GenAIExamples/AudioQnA/audioqna.py . RUN rm -rf GenAIExamples -ENV PYTHONPATH=/usr/bin/python:/home/user/GenAIComps +ENV PYTHONPATH=$PYTHONPATH:/home/user/GenAIComps + +USER user + +WORKDIR /home/user -ENTRYPOINT ["python", "docsum.py"] +ENTRYPOINT ["python", "audioqna.py"] diff --git a/agent-langchain/meta.yml b/opea/audioqna/meta.yml similarity index 37% rename from agent-langchain/meta.yml rename to opea/audioqna/meta.yml index bef603ca6d47429cf4b465841cf15c629083e8de..6aaab5ac0c653dcd8111d1f912059864ab0f522f 100644 --- a/agent-langchain/meta.yml +++ b/opea/audioqna/meta.yml @@ -1,3 +1,3 @@ 1.0-oe2403lts: - path: agent-langchain/1.0/24.03-lts/Dockerfile + path: audioqna/1.0/24.03-lts/Dockerfile arch: x86_64 \ No newline at end of file diff --git a/chatqna-conversation-ui/1.0/24.03-lts/Dockerfile b/opea/chatqna-conversation-ui/1.0/24.03-lts/Dockerfile similarity index 100% rename from chatqna-conversation-ui/1.0/24.03-lts/Dockerfile rename to opea/chatqna-conversation-ui/1.0/24.03-lts/Dockerfile diff --git a/chatqna-conversation-ui/1.0/24.03-lts/env.sh b/opea/chatqna-conversation-ui/1.0/24.03-lts/env.sh similarity index 100% rename from chatqna-conversation-ui/1.0/24.03-lts/env.sh rename to opea/chatqna-conversation-ui/1.0/24.03-lts/env.sh diff --git a/chatqna-conversation-ui/1.0/24.03-lts/nginx.conf b/opea/chatqna-conversation-ui/1.0/24.03-lts/nginx.conf similarity index 100% rename from chatqna-conversation-ui/1.0/24.03-lts/nginx.conf rename to opea/chatqna-conversation-ui/1.0/24.03-lts/nginx.conf diff --git a/opea/chatqna-conversation-ui/meta.yml b/opea/chatqna-conversation-ui/meta.yml new file mode 100644 index 0000000000000000000000000000000000000000..bd5103c7d3af16263362107804af49a1d94c6521 --- /dev/null +++ b/opea/chatqna-conversation-ui/meta.yml @@ -0,0 +1,3 @@ +1.0-oe2403lts: + path: opea/chatqna-conversation-ui/1.0/24.03-lts/Dockerfile + arch: x86_64 diff --git a/chatqna-ui/1.0/24.03-lts/Dockerfile b/opea/chatqna-ui/1.0/24.03-lts/Dockerfile similarity index 100% rename from chatqna-ui/1.0/24.03-lts/Dockerfile rename to opea/chatqna-ui/1.0/24.03-lts/Dockerfile diff --git a/opea/chatqna-ui/meta.yml b/opea/chatqna-ui/meta.yml new file mode 100644 index 0000000000000000000000000000000000000000..9cec7c11f1561337f07e2bb110d67a1086d039f1 --- /dev/null +++ b/opea/chatqna-ui/meta.yml @@ -0,0 +1,3 @@ +1.0-oe2403lts: + path: opea/chatqna-ui/1.0/24.03-lts/Dockerfile + arch: x86_64 diff --git a/chatqna/1.0/24.03-lts/Dockerfile b/opea/chatqna/1.0/24.03-lts/Dockerfile similarity index 100% rename from chatqna/1.0/24.03-lts/Dockerfile rename to opea/chatqna/1.0/24.03-lts/Dockerfile diff --git a/opea/chatqna/meta.yml b/opea/chatqna/meta.yml new file mode 100644 index 0000000000000000000000000000000000000000..34843ee16646873de52c0e5acc519e13f9a300da --- /dev/null +++ b/opea/chatqna/meta.yml @@ -0,0 +1,3 @@ +1.0-oe2403lts: + path: opea/chatqna/1.0/24.03-lts/Dockerfile + arch: x86_64 diff --git a/codegen-ui/1.0/24.03-lts/Dockerfile b/opea/codegen-ui/1.0/24.03-lts/Dockerfile similarity index 100% rename from codegen-ui/1.0/24.03-lts/Dockerfile rename to opea/codegen-ui/1.0/24.03-lts/Dockerfile diff --git a/codegen-ui/meta.yml b/opea/codegen-ui/meta.yml similarity index 100% rename from codegen-ui/meta.yml rename to opea/codegen-ui/meta.yml diff --git a/codegen/1.0/24.03-lts/Dockerfile b/opea/codegen/1.0/24.03-lts/Dockerfile similarity index 100% rename from codegen/1.0/24.03-lts/Dockerfile rename to opea/codegen/1.0/24.03-lts/Dockerfile diff --git a/codegen/meta.yml b/opea/codegen/meta.yml similarity index 100% rename from codegen/meta.yml rename to opea/codegen/meta.yml diff --git a/codetrans-ui/1.0/24.03-lts/Dockerfile b/opea/codetrans-ui/1.0/24.03-lts/Dockerfile similarity index 100% rename from codetrans-ui/1.0/24.03-lts/Dockerfile rename to opea/codetrans-ui/1.0/24.03-lts/Dockerfile diff --git a/codetrans-ui/meta.yml b/opea/codetrans-ui/meta.yml similarity index 100% rename from codetrans-ui/meta.yml rename to opea/codetrans-ui/meta.yml diff --git a/codetrans/1.0/24.03-lts/Dockerfile b/opea/codetrans/1.0/24.03-lts/Dockerfile similarity index 100% rename from codetrans/1.0/24.03-lts/Dockerfile rename to opea/codetrans/1.0/24.03-lts/Dockerfile diff --git a/codetrans/meta.yml b/opea/codetrans/meta.yml similarity index 100% rename from codetrans/meta.yml rename to opea/codetrans/meta.yml diff --git a/dataprep-redis-langchain/0.3.4-redis5.1.1/24.03-lts/Dockerfile b/opea/dataprep-redis/1.0/24.03-lts/Dockerfile similarity index 83% rename from dataprep-redis-langchain/0.3.4-redis5.1.1/24.03-lts/Dockerfile rename to opea/dataprep-redis/1.0/24.03-lts/Dockerfile index 73d7c51c096b4f41cc1c4bf36e225f3edbdf8141..3ca47f9f033668a9c3834c7b0fd7a89322e6f9c1 100644 --- a/dataprep-redis-langchain/0.3.4-redis5.1.1/24.03-lts/Dockerfile +++ b/opea/dataprep-redis/1.0/24.03-lts/Dockerfile @@ -22,15 +22,15 @@ RUN yum update -y && \ RUN mkdir -p /tmp/LibreOffice/LibreOffice && \ - wget -O /tmp/LibreOffice/LibreOffice.tar.gz https://mirrors.cloud.tencent.com/libreoffice/libreoffice/stable/24.8.5/rpm/x86_64/LibreOffice_24.8.5_Linux_x86-64_rpm.tar.gz && \ + wget -O /tmp/LibreOffice/LibreOffice.tar.gz https://mirrors.cloud.tencent.com/libreoffice/libreoffice/stable/25.2.1/rpm/x86_64/LibreOffice_25.2.1_Linux_x86-64_rpm.tar.gz && \ tar -zxvf /tmp/LibreOffice/LibreOffice.tar.gz -C /tmp/LibreOffice/LibreOffice/ --strip-components 1 && \ yum -y install /tmp/LibreOffice/LibreOffice/RPMS/*.rpm && \ mkdir -p /tmp/LibreOffice/langpack_zh-CN && \ - wget -O /tmp/LibreOffice/langpack_zh-CN.tar.gz https://mirrors.cloud.tencent.com/libreoffice/libreoffice/stable/24.8.5/rpm/x86_64/LibreOffice_24.8.5_Linux_x86-64_rpm_langpack_zh-CN.tar.gz && \ + wget -O /tmp/LibreOffice/langpack_zh-CN.tar.gz https://mirrors.cloud.tencent.com/libreoffice/libreoffice/stable/25.2.1/rpm/x86_64/LibreOffice_25.2.1_Linux_x86-64_rpm_langpack_zh-CN.tar.gz && \ tar -zxvf /tmp/LibreOffice/langpack_zh-CN.tar.gz -C /tmp/LibreOffice/langpack_zh-CN/ --strip-components 1 && \ yum -y install /tmp/LibreOffice/langpack_zh-CN/RPMS/*.rpm && \ mkdir -p /tmp/LibreOffice/helppack_zh-CN && \ - wget -O /tmp/LibreOffice/helppack_zh-CN.tar.gz https://mirrors.cloud.tencent.com/libreoffice/libreoffice/stable/24.8.5/rpm/x86_64/LibreOffice_24.8.5_Linux_x86-64_rpm_helppack_zh-CN.tar.gz && \ + wget -O /tmp/LibreOffice/helppack_zh-CN.tar.gz https://mirrors.cloud.tencent.com/libreoffice/libreoffice/stable/25.2.1/rpm/x86_64/LibreOffice_25.2.1_Linux_x86-64_rpm_helppack_zh-CN.tar.gz && \ tar -zxvf /tmp/LibreOffice/helppack_zh-CN.tar.gz -C /tmp/LibreOffice/helppack_zh-CN/ --strip-components 1 && \ yum -y install /tmp/LibreOffice/helppack_zh-CN/RPMS/*.rpm && \ rm -rf /tmp/LibreOffice @@ -62,4 +62,4 @@ USER user WORKDIR /home/user/comps/dataprep/redis/langchain -ENTRYPOINT ["python", "prepare_doc_redis.py"] \ No newline at end of file +ENTRYPOINT ["python", "prepare_doc_redis.py"] diff --git a/opea/dataprep-redis/meta.yml b/opea/dataprep-redis/meta.yml new file mode 100644 index 0000000000000000000000000000000000000000..7dade52e1cd9cf03c6df25a5b4ee6a0fad4b5450 --- /dev/null +++ b/opea/dataprep-redis/meta.yml @@ -0,0 +1,3 @@ +1.0-oe2403lts: + path: opea/dataprep-redis/1.0/24.03-lts/Dockerfile + arch: x86_64 diff --git a/opea/doc-index-retriever/1.0/24.03-LTS/Dockerfile b/opea/doc-index-retriever/1.0/24.03-LTS/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..e127024bf7c5c03f860358faad38cc38e12a5fea --- /dev/null +++ b/opea/doc-index-retriever/1.0/24.03-LTS/Dockerfile @@ -0,0 +1,34 @@ +# Copyright (C) 2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 + +FROM openeuler/openeuler:24.03-lts + +RUN yum update -y && \ + yum install -y --setopt=install_weak_deps=False \ + python-pip python \ + shadow-utils \ + mesa-libGL \ + jemalloc-devel \ + git + +RUN useradd -m -s /bin/bash user && \ + mkdir -p /home/user && \ + chown -R user /home/user/ + +USER user + +WORKDIR /home/user/ +RUN git clone https://github.com/opea-project/GenAIComps.git && cd GenAIComps && git checkout v1.0 + +WORKDIR /home/user/GenAIComps +RUN pip install --no-cache-dir --upgrade pip && \ + pip install --no-cache-dir -r /home/user/GenAIComps/requirements.txt + +WORKDIR /home/user/ +RUN git clone https://github.com/opea-project/GenAIExamples.git && cd GenAIExamples && git checkout v1.0 +RUN cp GenAIExamples/DocIndexRetriever/retrieval_tool.py . +RUN rm -rf GenAIExamples + +ENV PYTHONPATH=$PYTHONPATH:/home/user/GenAIComps + +ENTRYPOINT ["python", "retrieval_tool.py"] diff --git a/chatqna-conversation-ui/meta.yml b/opea/doc-index-retriever/meta.yml similarity index 33% rename from chatqna-conversation-ui/meta.yml rename to opea/doc-index-retriever/meta.yml index 09e4737bd21d2122d017cfdb384e92aa25fe6aa6..7b3bbed002fb28fc39a931d0fe5ac8fdf064af89 100644 --- a/chatqna-conversation-ui/meta.yml +++ b/opea/doc-index-retriever/meta.yml @@ -1,3 +1,3 @@ 1.0-oe2403lts: - path: chatqna-conversation-ui/1.0/24.03-lts/Dockerfile + path: doc-index-retriever/1.0/24.03-lts/Dockerfile arch: x86_64 \ No newline at end of file diff --git a/docsum-ui/1.0/24.03-lts/Dockerfile b/opea/docsum-ui/1.0/24.03-lts/Dockerfile similarity index 100% rename from docsum-ui/1.0/24.03-lts/Dockerfile rename to opea/docsum-ui/1.0/24.03-lts/Dockerfile diff --git a/docsum-ui/meta.yml b/opea/docsum-ui/meta.yml similarity index 79% rename from docsum-ui/meta.yml rename to opea/docsum-ui/meta.yml index bd1d176b66860f152dc140d9fe6d20fcb9ff080a..40975cbf51d12f4242def4c8b1235fa610b399e3 100644 --- a/docsum-ui/meta.yml +++ b/opea/docsum-ui/meta.yml @@ -1,2 +1,3 @@ 1.0-oe2403lts: path: docsum-ui/1.0/24.03-lts/Dockerfile + arch: x86_64 diff --git a/docsum/1.0/24.03-lts/Dockerfile b/opea/docsum/1.0/24.03-lts/Dockerfile similarity index 100% rename from docsum/1.0/24.03-lts/Dockerfile rename to opea/docsum/1.0/24.03-lts/Dockerfile diff --git a/docsum/meta.yml b/opea/docsum/meta.yml similarity index 79% rename from docsum/meta.yml rename to opea/docsum/meta.yml index 51e1f507412fb604ddd580d3e3653009e5148a86..4d78dccc14fa46f2175343bff1a59bcb8c60feb3 100644 --- a/docsum/meta.yml +++ b/opea/docsum/meta.yml @@ -1,2 +1,3 @@ 1.0-oe2403lts: path: docsum/1.0/24.03-lts/Dockerfile + arch: x86_64 \ No newline at end of file diff --git a/embedding-tei-langchain/0.3.3/24.03-lts/Dockerfile b/opea/embedding-tei/1.0/24.03-lts/Dockerfile similarity index 98% rename from embedding-tei-langchain/0.3.3/24.03-lts/Dockerfile rename to opea/embedding-tei/1.0/24.03-lts/Dockerfile index 9e3e6fc5c89210e4f9ba552b6fc736adbffcc454..aa8623331e5334a507b4cb0525398cbe51578c35 100644 --- a/embedding-tei-langchain/0.3.3/24.03-lts/Dockerfile +++ b/opea/embedding-tei/1.0/24.03-lts/Dockerfile @@ -8,7 +8,7 @@ RUN yum update -y && \ yum install -y \ --setopt=install_weak_deps=False \ python3-pip python3-devel \ - cmake gcc-c++ git \ + cmake gcc-c++ \ shadow-utils \ mesa-libGL \ jemalloc-devel \ diff --git a/opea/embedding-tei/meta.yml b/opea/embedding-tei/meta.yml new file mode 100644 index 0000000000000000000000000000000000000000..be89b811033be63289970911d29711d30605621a --- /dev/null +++ b/opea/embedding-tei/meta.yml @@ -0,0 +1,3 @@ +1.0-oe2403lts: + path: opea/embedding-tei/1.0/24.03-lts/Dockerfile + arch: x86_64 diff --git a/faqgen-ui/1.0/24.03-lts/Dockerfile b/opea/faqgen-ui/1.0/24.03-lts/Dockerfile similarity index 100% rename from faqgen-ui/1.0/24.03-lts/Dockerfile rename to opea/faqgen-ui/1.0/24.03-lts/Dockerfile diff --git a/faqgen-ui/meta.yml b/opea/faqgen-ui/meta.yml similarity index 100% rename from faqgen-ui/meta.yml rename to opea/faqgen-ui/meta.yml diff --git a/faqgen/1.0/24.03-lts/Dockerfile b/opea/faqgen/1.0/24.03-lts/Dockerfile similarity index 100% rename from faqgen/1.0/24.03-lts/Dockerfile rename to opea/faqgen/1.0/24.03-lts/Dockerfile diff --git a/faqgen/meta.yml b/opea/faqgen/meta.yml similarity index 100% rename from faqgen/meta.yml rename to opea/faqgen/meta.yml diff --git a/opea/finetuning/1.0/24.03-LTS/Dockerfile b/opea/finetuning/1.0/24.03-LTS/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..d1ca9ae4aa61dcde0a5c4da546499eb35b259e84 --- /dev/null +++ b/opea/finetuning/1.0/24.03-LTS/Dockerfile @@ -0,0 +1,49 @@ +# Copyright (C) 2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 + +# Use the same python version with ray +FROM openeuler/openeuler:24.03-lts + +ARG HF_TOKEN + +ENV HF_TOKEN=$HF_TOKEN + +# Update package manager and install Git +RUN yum update -y && \ + yum install -y --setopt=install_weak_deps=False \ + python-pip python \ + shadow-utils \ + git + +RUN useradd -m -s /bin/bash user && \ + mkdir -p /home/user && \ + chown -R user /home/user/ + +USER user + +WORKDIR /home/user/ +RUN git clone https://github.com/opea-project/GenAIComps.git && cd GenAIComps && git checkout v1.0 + +RUN cp -r GenAIComps/comps . && \ + rm -rf GenAIComps + +ENV PATH=$PATH:/home/user/.local/bin + +RUN python -m pip install --no-cache-dir --upgrade pip && \ + python -m pip install --no-cache-dir torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu && \ + python -m pip install --no-cache-dir intel-extension-for-pytorch && \ + python -m pip install --no-cache-dir oneccl_bind_pt --extra-index-url https://pytorch-extension.intel.com/release-whl/stable/cpu/us/ && \ + python -m pip install --no-cache-dir -r /home/user/comps/finetuning/requirements.txt + +ENV PYTHONPATH=$PYTHONPATH:/home/user + +WORKDIR /home/user/comps/finetuning + +RUN echo PKGPATH=$(python3 -c "import pkg_resources; print(pkg_resources.get_distribution('oneccl-bind-pt').location)") >> run.sh && \ + echo 'export LD_LIBRARY_PATH=$PKGPATH/oneccl_bindings_for_pytorch/opt/mpi/lib/:$LD_LIBRARY_PATH' >> run.sh && \ + echo 'source $PKGPATH/oneccl_bindings_for_pytorch/env/setvars.sh' >> run.sh && \ + echo ray start --head --dashboard-host=0.0.0.0 >> run.sh && \ + echo export RAY_ADDRESS=http://localhost:8265 >> run.sh && \ + echo python finetuning_service.py >> run.sh + +CMD bash run.sh diff --git a/opea/finetuning/meta.yml b/opea/finetuning/meta.yml new file mode 100644 index 0000000000000000000000000000000000000000..e71455ef6b01ec199dcf5b5738471187bedc8726 --- /dev/null +++ b/opea/finetuning/meta.yml @@ -0,0 +1,3 @@ +1.0-oe2403lts: + path: finetuning/1.0/24.03-lts/Dockerfile + arch: x86_64 \ No newline at end of file diff --git a/opea/image-list.yml b/opea/image-list.yml new file mode 100644 index 0000000000000000000000000000000000000000..842406e182534ef2be8deb76ae05c5ca1a68ec1b --- /dev/null +++ b/opea/image-list.yml @@ -0,0 +1,33 @@ +images: + asr: opea/asr + audioqna: opea/audioqna + chatqna-conversation-ui: opea/chatqna-conversation-ui + chatqna-ui: opea/chatqna-ui + chatqna: opea/chatqna + codegen-ui: opea/codegen-ui + codegen: opea/codegen + codetrans-ui: opea/codetrans-ui + codetrans: opea/codetrans + dataprep-redis: opea/dataprep-redis + doc-index-retriever: opea/doc-index-retriever + docsum-ui: opea/docsum-ui + docsum: opea/docsum + embedding-tei: opea/embedding-tei + faqgen-ui: opea/faqgen-ui + faqgen: opea/faqgen + llm-docsum-tgi: opea/llm-docsum-tgi + llm-faqgen-tgi: opea/llm-faqgen-tgi + llm-tgi: opea/llm-tgi + llm-vllm: opea/llm-vllm + reranking-tei: opea/reranking-tei + retriever-redis: opea/retriever-redis + searchqna: opea/searchqna + searchqna-ui: opea/searchqna-ui + speecht5: opea/speecht5 + translation-ui: opea/translation-ui + translation: opea/translation + tts: opea/tts + web-retriever-chroma: opea/web-retriever-chroma + whisper: opea/whisper + finetuning: opea/finetuning + diff --git a/llm-docsum-tgi-langchain/0.3.0/24.03-lts/Dockerfile b/opea/llm-docsum-tgi/1.0/24.03-lts/Dockerfile similarity index 84% rename from llm-docsum-tgi-langchain/0.3.0/24.03-lts/Dockerfile rename to opea/llm-docsum-tgi/1.0/24.03-lts/Dockerfile index 5665f56b7adedc4da8c62c3a5a932a3c66d0945a..10a54537c01039fd7f56d25ef93d8a40cc7371d9 100644 --- a/llm-docsum-tgi-langchain/0.3.0/24.03-lts/Dockerfile +++ b/opea/llm-docsum-tgi/1.0/24.03-lts/Dockerfile @@ -3,7 +3,7 @@ FROM openeuler/openeuler:24.03-lts -ARG PLATFORM="cpu" +ARG ARCH="cpu" RUN yum update -y && \ yum install -y --setopt=install_weak_deps=False \ @@ -27,7 +27,7 @@ RUN cp -r GenAIComps/comps . && \ rm -rf GenAIComps RUN pip install --no-cache-dir --upgrade pip && \ - if [ ${PLATFORM} = "cpu" ]; then pip install --no-cache-dir torch torchvision --index-url https://download.pytorch.org/whl/cpu; fi && \ + if [ ${ARCH} = "cpu" ]; then pip install --no-cache-dir torch torchvision --index-url https://download.pytorch.org/whl/cpu; fi && \ pip install --no-cache-dir -r /home/user/comps/llms/summarization/tgi/langchain/requirements.txt ENV PYTHONPATH=$PYTHONPATH:/home/user diff --git a/opea/llm-docsum-tgi/meta.yml b/opea/llm-docsum-tgi/meta.yml new file mode 100644 index 0000000000000000000000000000000000000000..9fdd5888b465b639227b32b5f805ea1c67fa24b7 --- /dev/null +++ b/opea/llm-docsum-tgi/meta.yml @@ -0,0 +1,3 @@ +1.0-oe2403lts: + path: llm-docsum-tgi/1.0/24.03-lts/Dockerfile + arch: x86_64 diff --git a/llm-faqgen-tgi-langchain/0.3.0/24.03-lts/Dockerfile b/opea/llm-faqgen-tgi/1.0/24.03-lts/Dockerfile similarity index 100% rename from llm-faqgen-tgi-langchain/0.3.0/24.03-lts/Dockerfile rename to opea/llm-faqgen-tgi/1.0/24.03-lts/Dockerfile diff --git a/opea/llm-faqgen-tgi/meta.yml b/opea/llm-faqgen-tgi/meta.yml new file mode 100644 index 0000000000000000000000000000000000000000..7bf7d9b2989011e06632f6891aa23fa7a44c49e0 --- /dev/null +++ b/opea/llm-faqgen-tgi/meta.yml @@ -0,0 +1,3 @@ +1.0-oe2403lts: + path: llm-faqgen-tgi/1.0/24.03-lts/Dockerfile + arch: x86_64 diff --git a/llm-tgi/1.0/24.03-lts/Dockerfile b/opea/llm-tgi/1.0/24.03-lts/Dockerfile similarity index 100% rename from llm-tgi/1.0/24.03-lts/Dockerfile rename to opea/llm-tgi/1.0/24.03-lts/Dockerfile diff --git a/opea/llm-tgi/meta.yml b/opea/llm-tgi/meta.yml new file mode 100644 index 0000000000000000000000000000000000000000..e718271f7f844d9bf211ce128bcf953bcf1f4bee --- /dev/null +++ b/opea/llm-tgi/meta.yml @@ -0,0 +1,3 @@ +1.0-oe2403lts: + path: opea/llm-tgi/1.0/24.03-lts/Dockerfile + arch: x86_64 diff --git a/llm-vllm-langchain/0.3.3-npu/24.03-lts/Dockerfile b/opea/llm-vllm/0.3.3-npu/24.03-lts/Dockerfile similarity index 100% rename from llm-vllm-langchain/0.3.3-npu/24.03-lts/Dockerfile rename to opea/llm-vllm/0.3.3-npu/24.03-lts/Dockerfile diff --git a/llm-vllm-langchain/0.3.3/24.03-lts/Dockerfile b/opea/llm-vllm/1.0/24.03-lts/Dockerfile similarity index 100% rename from llm-vllm-langchain/0.3.3/24.03-lts/Dockerfile rename to opea/llm-vllm/1.0/24.03-lts/Dockerfile diff --git a/opea/llm-vllm/meta.yml b/opea/llm-vllm/meta.yml new file mode 100644 index 0000000000000000000000000000000000000000..9d48c8de347e7c96763d4f48259d2bd8555c380d --- /dev/null +++ b/opea/llm-vllm/meta.yml @@ -0,0 +1,3 @@ +1.0-oe2403lts: + path: llm-vllm/1.0/24.03-lts/Dockerfile + arch: x86_64 \ No newline at end of file diff --git a/reranking-tei/1.0/24.03-lts/Dockerfile b/opea/reranking-tei/1.0/24.03-lts/Dockerfile similarity index 100% rename from reranking-tei/1.0/24.03-lts/Dockerfile rename to opea/reranking-tei/1.0/24.03-lts/Dockerfile diff --git a/opea/reranking-tei/meta.yml b/opea/reranking-tei/meta.yml new file mode 100644 index 0000000000000000000000000000000000000000..2af46ef4214aa5b3df34503b108422de5b8a3334 --- /dev/null +++ b/opea/reranking-tei/meta.yml @@ -0,0 +1,3 @@ +1.0-oe2403lts: + path: opea/reranking-tei/1.0/24.03-lts/Dockerfile + arch: x86_64 diff --git a/retriever-redis-langchain/0.3.3-redis5.1.1/24.03-lts/Dockerfile b/opea/retriever-redis/1.0/24.03-lts/Dockerfile similarity index 100% rename from retriever-redis-langchain/0.3.3-redis5.1.1/24.03-lts/Dockerfile rename to opea/retriever-redis/1.0/24.03-lts/Dockerfile diff --git a/opea/retriever-redis/meta.yml b/opea/retriever-redis/meta.yml new file mode 100644 index 0000000000000000000000000000000000000000..6ceb61aa3b139a419b016b7f356163b015a19051 --- /dev/null +++ b/opea/retriever-redis/meta.yml @@ -0,0 +1,3 @@ +1.0-oe2403lts: + path: opea/retriever-redis/1.0/24.03-lts/Dockerfile + arch: x86_64 diff --git a/opea/searchqna-ui/1.0/24.03-lts/Dockerfile b/opea/searchqna-ui/1.0/24.03-lts/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..2b2d4222360c8cd94ed488678d10a4630e2679fc --- /dev/null +++ b/opea/searchqna-ui/1.0/24.03-lts/Dockerfile @@ -0,0 +1,31 @@ +# Copyright (C) 2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 + +# Use node 20.11.1 as the base image +FROM openeuler/openeuler:24.03-lts + +# Update package manager and install Git +RUN yum update -y && \ + yum install -y --setopt=install_weak_deps=False \ + npm \ + git + +WORKDIR /home/user + +# Copy the front-end code repository +RUN git clone https://github.com/opea-project/GenAIExamples.git && cd GenAIExamples && git checkout v1.0 + +# Set the working directory +WORKDIR /home/user/GenAIExamples/SearchQnA/ui/svelte + +# Install front-end dependencies +RUN npm install + +# Build the front-end application +RUN npm run build + +# Expose the port of the front-end application +EXPOSE 5173 + +# Run the front-end application in preview mode +CMD ["npm", "run", "preview", "--", "--port", "5173", "--host", "0.0.0.0"] \ No newline at end of file diff --git a/opea/searchqna-ui/meta.yml b/opea/searchqna-ui/meta.yml new file mode 100644 index 0000000000000000000000000000000000000000..5ffeedf049a27267a8bcec1741bad660246efee8 --- /dev/null +++ b/opea/searchqna-ui/meta.yml @@ -0,0 +1,2 @@ +1.0-oe2403lts: + path: searchqna-ui/1.0/24.03-lts/Dockerfile diff --git a/opea/searchqna/1.0/24.03-lts/Dockerfile b/opea/searchqna/1.0/24.03-lts/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..b77d3b5f1699ac758f6d3689b283ffdc51acec6f --- /dev/null +++ b/opea/searchqna/1.0/24.03-lts/Dockerfile @@ -0,0 +1,36 @@ +# Copyright (C) 2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 + +FROM openeuler/openeuler:24.03-lts + +RUN yum update -y && \ + yum install -y --setopt=install_weak_deps=False \ + python-pip python \ + shadow-utils \ + mesa-libGL \ + jemalloc-devel \ + git + +RUN useradd -m -s /bin/bash user && \ + mkdir -p /home/user && \ + chown -R user /home/user/ + +WORKDIR /home/user/ +RUN git clone https://github.com/opea-project/GenAIComps.git && cd GenAIComps && git checkout v1.0 + +WORKDIR /home/user/GenAIComps +RUN pip install --no-cache-dir --upgrade pip && \ + pip install --no-cache-dir -r /home/user/GenAIComps/requirements.txt + +WORKDIR /home/user/ +RUN git clone https://github.com/opea-project/GenAIExamples.git && cd GenAIExamples && git checkout v1.0 +RUN cp GenAIExamples/SearchQnA/searchqna.py . +RUN rm -rf GenAIExamples + +ENV PYTHONPATH=$PYTHONPATH:/home/user/GenAIComps + +USER user + +WORKDIR /home/user + +ENTRYPOINT ["python", "searchqna.py"] diff --git a/opea/searchqna/meta.yml b/opea/searchqna/meta.yml new file mode 100644 index 0000000000000000000000000000000000000000..fede55bd3e3dcd9113277aa66bf17658d4068022 --- /dev/null +++ b/opea/searchqna/meta.yml @@ -0,0 +1,2 @@ +1.0-oe2403lts: + path: searchqna/1.0/24.03-lts/Dockerfile diff --git a/opea/speecht5/1.0/24.03-LTS/Dockerfile b/opea/speecht5/1.0/24.03-LTS/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..440663193081fe0263ede52ccfaa64e6a6498fd3 --- /dev/null +++ b/opea/speecht5/1.0/24.03-LTS/Dockerfile @@ -0,0 +1,44 @@ +# Copyright (C) 2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 + +FROM openeuler/openeuler:24.03-lts + +# Install system dependencies +RUN yum update -y && \ + yum install -y \ + --setopt=install_weak_deps=False \ + python-pip python \ + shadow-utils \ + ffmpeg \ + git + +RUN useradd -m -s /bin/bash user && \ + mkdir -p /home/user && \ + chown -R user /home/user/ + +# Set environment variables +ENV LANG=en_US.UTF-8 +ENV PYTHONPATH=/home/user +ARG ARCH=cpu + +USER user + +WORKDIR /home/user +RUN git clone https://github.com/opea-project/GenAIComps.git && cd GenAIComps && git checkout v1.2 + +RUN cp -r GenAIComps/comps . && \ + rm -rf GenAIComps + +RUN pip install --no-cache-dir --upgrade pip setuptools && \ + if [ "${ARCH}" = "cpu" ]; then \ + pip install --no-cache-dir torch torchvision --index-url https://download.pytorch.org/whl/cpu ; \ + pip install --no-cache-dir --extra-index-url https://download.pytorch.org/whl/cpu -r /home/user/comps/tts/src/integrations/dependency/speecht5/requirements.txt ; \ + else \ + pip install --no-cache-dir -r /home/user/comps/tts/src/integrations/dependency/speecht5/requirements.txt ; \ + fi + +ENV PYTHONPATH=$PYTHONPATH:/home/user + +WORKDIR /home/user/comps/tts/src/integrations/dependency/speecht5 + +ENTRYPOINT ["python", "speecht5_server.py", "--device", "cpu"] diff --git a/opea/speecht5/meta.yml b/opea/speecht5/meta.yml new file mode 100644 index 0000000000000000000000000000000000000000..65e48466cb52f4c1b8b422b9c2ce1b838f14a6ba --- /dev/null +++ b/opea/speecht5/meta.yml @@ -0,0 +1,3 @@ +1.0-oe2403lts: + path: speecht5/1.0/24.03-lts/Dockerfile + arch: x86_64 \ No newline at end of file diff --git a/translation-ui/1.0/24.03-lts/Dockerfile b/opea/translation-ui/1.0/24.03-lts/Dockerfile similarity index 100% rename from translation-ui/1.0/24.03-lts/Dockerfile rename to opea/translation-ui/1.0/24.03-lts/Dockerfile diff --git a/translation-ui/meta.yml b/opea/translation-ui/meta.yml similarity index 100% rename from translation-ui/meta.yml rename to opea/translation-ui/meta.yml diff --git a/translation/1.0/24.03-lts/Dockerfile b/opea/translation/1.0/24.03-lts/Dockerfile similarity index 100% rename from translation/1.0/24.03-lts/Dockerfile rename to opea/translation/1.0/24.03-lts/Dockerfile diff --git a/translation/meta.yml b/opea/translation/meta.yml similarity index 100% rename from translation/meta.yml rename to opea/translation/meta.yml diff --git a/opea/tts/1.0/24.03-LTS/Dockerfile b/opea/tts/1.0/24.03-LTS/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..60ccfa286c9358c5c032b9751a8c3222618dac9f --- /dev/null +++ b/opea/tts/1.0/24.03-LTS/Dockerfile @@ -0,0 +1,39 @@ +# Copyright (C) 2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 + +FROM openeuler/openeuler:24.03-lts + +# Update package manager and install Git +RUN yum update -y && \ + yum install -y --setopt=install_weak_deps=False \ + python-pip python \ + shadow-utils \ + git + +RUN useradd -m -s /bin/bash user && \ + mkdir -p /home/user && \ + chown -R user /home/user/ +USER user + +ENV LANG=C.UTF-8 +ARG ARCH=cpu + +WORKDIR /home/user/ +RUN git clone https://github.com/opea-project/GenAIComps.git && cd GenAIComps && git checkout v1.0 + +RUN cp -r GenAIComps/comps . && \ + rm -rf GenAIComps + +RUN pip install --no-cache-dir --upgrade pip && \ + if [ "${ARCH}" = "cpu" ]; then \ + pip install --no-cache-dir torch torchvision --index-url https://download.pytorch.org/whl/cpu ; \ + pip install --no-cache-dir --extra-index-url https://download.pytorch.org/whl/cpu -r /home/user/comps/tts/speecht5/requirements.txt ; \ + else \ + pip install --no-cache-dir -r /home/user/comps/tts/speecht5/requirements.txt ; \ + fi + +ENV PYTHONPATH=$PYTHONPATH:/home/user + +WORKDIR /home/user/comps/tts/speecht5 + +ENTRYPOINT ["python", "tts.py"] diff --git a/opea/tts/meta.yml b/opea/tts/meta.yml new file mode 100644 index 0000000000000000000000000000000000000000..57d18eebdd612e4878c181e5f0df9a657e82db83 --- /dev/null +++ b/opea/tts/meta.yml @@ -0,0 +1,3 @@ +1.0-oe2403lts: + path: tts/1.0/24.03-lts/Dockerfile + arch: x86_64 \ No newline at end of file diff --git a/opea/web-retriever-chroma/1.0/24.03-lts/Dockerfile b/opea/web-retriever-chroma/1.0/24.03-lts/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..61056432a8c4d760024b35d64943fa680b9b134f --- /dev/null +++ b/opea/web-retriever-chroma/1.0/24.03-lts/Dockerfile @@ -0,0 +1,40 @@ +# Copyright (C) 2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 + +FROM openeuler/openeuler:24.03-lts + +ARG ARCH="cpu" # Set this to "cpu" or "gpu" + +RUN yum update -y && \ + yum install -y --setopt=install_weak_deps=False \ + python-pip python \ + shadow-utils \ + mesa-libGL \ + jemalloc-devel \ + git + +RUN useradd -m -s /bin/bash user && \ + mkdir -p /home/user && \ + chown -R user /home/user/ + +USER user + +WORKDIR /home/user/ + +RUN git clone https://github.com/opea-project/GenAIComps.git && cd GenAIComps && git checkout v1.0 + +RUN cp -r GenAIComps/comps . && \ + rm -rf GenAIComps + +RUN pip install --no-cache-dir --upgrade pip && \ + if [ ${ARCH} = "cpu" ]; then \ + pip install --no-cache-dir --extra-index-url https://download.pytorch.org/whl/cpu -r /home/user/comps/web_retrievers/chroma/langchain/requirements.txt; \ + else \ + pip install --no-cache-dir -r /home/user/comps/web_retrievers/chroma/langchain/requirements.txt; \ + fi + +ENV PYTHONPATH=$PYTHONPATH:/home/user + +WORKDIR /home/user/comps/web_retrievers/chroma/langchain + +ENTRYPOINT ["python", "retriever_chroma.py"] diff --git a/opea/web-retriever-chroma/meta.yml b/opea/web-retriever-chroma/meta.yml new file mode 100644 index 0000000000000000000000000000000000000000..6b18568df517e3b96b44093c7b2bdc3cffc518de --- /dev/null +++ b/opea/web-retriever-chroma/meta.yml @@ -0,0 +1,3 @@ +1.0-oe2403lts: + path: web-retriever-chroma/1.0/24.03-lts/Dockerfile + arch: x86_64 diff --git a/opea/whisper/1.0/24.03-LTS/Dockerfile b/opea/whisper/1.0/24.03-LTS/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..2a29d8b84f0aa2649e27fd02bc054c11a79c7d2f --- /dev/null +++ b/opea/whisper/1.0/24.03-LTS/Dockerfile @@ -0,0 +1,44 @@ +# Copyright (C) 2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 + +FROM openeuler/openeuler:24.03-lts + +# Install system dependencies +RUN yum update -y && \ + yum install -y \ + --setopt=install_weak_deps=False \ + python-pip python \ + shadow-utils \ + ffmpeg \ + git + +RUN useradd -m -s /bin/bash user && \ + mkdir -p /home/user && \ + chown -R user /home/user/ + +# Set environment variables +ENV LANG=en_US.UTF-8 +ARG ARCH=cpu + +USER user + +WORKDIR /home/user +RUN git clone https://github.com/opea-project/GenAIComps.git && cd GenAIComps && git checkout v1.2 + +RUN cp -r GenAIComps/comps . && \ + rm -rf GenAIComps + +RUN pip install --no-cache-dir --upgrade pip setuptools && \ + pip install --no-cache-dir -r /home/user/comps/asr/src/requirements.txt && \ + if [ "${ARCH}" = "cpu" ]; then \ + pip install --no-cache-dir torch torchvision --index-url https://download.pytorch.org/whl/cpu ; \ + pip install --no-cache-dir --extra-index-url https://download.pytorch.org/whl/cpu -r /home/user/comps/asr/src/requirements.txt ; \ + else \ + pip install --no-cache-dir -r /home/user/comps/asr/src/requirements.txt ; \ + fi + +ENV PYTHONPATH=$PYTHONPATH:/home/user + +WORKDIR /home/user/comps/asr/src/integrations/dependency/whisper + +ENTRYPOINT ["python", "whisper_server.py", "--device", "cpu"] diff --git a/opea/whisper/meta.yml b/opea/whisper/meta.yml new file mode 100644 index 0000000000000000000000000000000000000000..3f43ec8b0c71b541c999b43769250ca7d6b59a36 --- /dev/null +++ b/opea/whisper/meta.yml @@ -0,0 +1,3 @@ +1.0-oe2403lts: + path: whisper/1.0/24.03-lts/Dockerfile + arch: x86_64 \ No newline at end of file diff --git a/python/3.9.9/24.03-lts/Dockerfile b/python/3.9.9/24.03-lts/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..1aa720493551a464f37e6b917ea7d34f8eaad94b --- /dev/null +++ b/python/3.9.9/24.03-lts/Dockerfile @@ -0,0 +1,62 @@ +FROM openeuler/openeuler:24.03-lts AS py-installer + +ARG PY_VERSION=3.9 +ARG PY_MAJOR_VERSION=3 +ARG PY_LATEST_VERSION=3.9.9 +ARG PY_HOME="/usr/local/python${PY_VERSION}" +ARG PY_INSTALLER_TGZ="Python-${PY_LATEST_VERSION}.tgz" +ARG PY_INSTALLER_DIR="Python-${PY_LATEST_VERSION}" +ARG PY_INSTALLER_URL="https://repo.huaweicloud.com/python/${PY_LATEST_VERSION}/${PY_INSTALLER_TGZ}" + +# Install dependencies +RUN yum update -y && \ + yum install -y \ + gcc \ + gcc-c++ \ + make \ + cmake \ + curl \ + zlib-devel \ + bzip2-devel \ + openssl-devel \ + ncurses-devel \ + sqlite-devel \ + readline-devel \ + tk-devel \ + gdbm-devel \ + libpcap-devel \ + xz-devel \ + libev-devel \ + expat-devel \ + libffi-devel \ + systemtap-sdt-devel \ + && yum clean all \ + && rm -rf /var/cache/yum \ + && rm -rf /tmp/* + +RUN curl -fsSL -o "/tmp/${PY_INSTALLER_TGZ}" "${PY_INSTALLER_URL}" && \ + tar -xf /tmp/${PY_INSTALLER_TGZ} -C /tmp && \ + cd /tmp/${PY_INSTALLER_DIR} && \ + mkdir -p /${PY_HOME}/lib && \ + ./configure --prefix=${PY_HOME} --enable-shared LDFLAGS="-Wl,-rpath ${PY_HOME}/lib" && \ + make -j "$(nproc)" && \ + make altinstall + + +RUN rm -rf /tmp/${PY_INSTALLER_TGZ} /tmp/${PY_INSTALLER_DIR} + +FROM openeuler/openeuler:24.03-lts AS official + +ARG PY_VERSION=3.9 +ARG PY_MAJOR_VERSION=3 +ARG PY_HOME="/usr/local/python${PY_VERSION}" + +COPY --from=py-installer /usr/local/python${PY_VERSION} /usr/local/python${PY_VERSION} + +RUN ln -sf ${PY_HOME}/bin/python${PY_VERSION} /usr/bin/python${PY_VERSION} && \ + ln -sf ${PY_HOME}/bin/pip${PY_VERSION} /usr/bin/pip${PY_VERSION} && \ + ln -sf /usr/bin/python${PY_VERSION} /usr/bin/python${PY_MAJOR_VERSION} && \ + ln -sf /usr/bin/pip${PY_VERSION} /usr/bin/pip${PY_MAJOR_VERSION} && \ + ln -sf /usr/bin/python${PY_MAJOR_VERSION} /usr/bin/python && \ + ln -sf /usr/bin/pip${PY_MAJOR_VERSION} /usr/bin/pip + diff --git a/reranking-tei/meta.yml b/reranking-tei/meta.yml deleted file mode 100644 index 3423455ea6c4b53fcbd7cd3afbe15425e96cfc86..0000000000000000000000000000000000000000 --- a/reranking-tei/meta.yml +++ /dev/null @@ -1,2 +0,0 @@ -1.0-oe2403lts: - path: reranking-tei/1.0/24.03-lts/Dockerfile \ No newline at end of file diff --git a/retriever-redis-langchain/meta.yml b/retriever-redis-langchain/meta.yml deleted file mode 100644 index f07b1cb62ef111d2185d8b1ad8f9edc02028dbfb..0000000000000000000000000000000000000000 --- a/retriever-redis-langchain/meta.yml +++ /dev/null @@ -1,3 +0,0 @@ -0.3.3-redis5.1.1-oe2403lts: - path: retriever-redis-langchain/0.3.3-redis5.1.1/24.03-lts/Dockerfile - arch: x86_64 \ No newline at end of file diff --git a/text-embeddings-inference-cpu/1.5/24.03-lts/Dockerfile b/text-embeddings-inference-cpu/1.5.0/24.03-lts/Dockerfile similarity index 100% rename from text-embeddings-inference-cpu/1.5/24.03-lts/Dockerfile rename to text-embeddings-inference-cpu/1.5.0/24.03-lts/Dockerfile diff --git a/text-embeddings-inference-cpu/meta.yml b/text-embeddings-inference-cpu/meta.yml index fa1a239ed9410c9271a703e02abaf250c52eff3f..7eb2a7ae7b5e02022871bc73ebb353043a363fa7 100644 --- a/text-embeddings-inference-cpu/meta.yml +++ b/text-embeddings-inference-cpu/meta.yml @@ -1,3 +1,3 @@ -1.5-oe2403lts: - path: text-embeddings-inference-cpu/1.5/24.03-lts/Dockerfile - arch: x86_64 \ No newline at end of file +1.5.0-oe2403lts: + path: text-embeddings-inference-cpu/1.5.0/24.03-lts/Dockerfile + arch: x86_64 diff --git a/text-generation-inference-cpu/meta.yml b/text-generation-inference-cpu/meta.yml index f2d6d770f706e3609456c65c8c9c484ddbfc6ca9..f525aa7718dd848ce9f0ef692cdd7f3494001473 100644 --- a/text-generation-inference-cpu/meta.yml +++ b/text-generation-inference-cpu/meta.yml @@ -1,3 +1,3 @@ 2.4.0-oe2403lts: path: text-generation-inference-cpu/2.4.0/24.03-lts/Dockerfile - arch: x86_64 \ No newline at end of file + arch: x86_64