diff --git a/chatqna-ui/meta.yml b/chatqna-ui/meta.yml index e3709ef9c48b8c04aba19f212bdc14fd2c1848ce..05addfa68f6a22dbf2c2a71b3f2adbe6de51e695 100644 --- a/chatqna-ui/meta.yml +++ b/chatqna-ui/meta.yml @@ -1,3 +1,2 @@ 1.0-oe2403lts: - path: chatqna-ui/1.0/24.03-lts/Dockerfile - arch: x86_64 \ No newline at end of file + 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 index 33875eab684da85b85a5039c6eef7f8d48ae52cb..9b63f5d406a2c97436684fae03b0ea52a63c640f 100644 --- a/chatqna/meta.yml +++ b/chatqna/meta.yml @@ -1,3 +1,2 @@ 1.0-oe2403lts: - path: chatqna/1.0/24.03-lts/Dockerfile - arch: x86_64 \ No newline at end of file + path: chatqna/1.0/24.03-lts/Dockerfile \ No newline at end of file diff --git a/dataprep-redis-langchain/0.3.4-redis5.1.1/24.03-lts/Dockerfile b/dataprep-redis-langchain/0.3.4-redis5.1.1/24.03-lts/Dockerfile index 8e77baf27a0c27efd029320d15a5e28f49b3256e..83f0eddfbd1c331fd2a5ee0558b6f7c20d7b23b0 100644 --- a/dataprep-redis-langchain/0.3.4-redis5.1.1/24.03-lts/Dockerfile +++ b/dataprep-redis-langchain/0.3.4-redis5.1.1/24.03-lts/Dockerfile @@ -18,22 +18,52 @@ RUN yum update -y && \ python-pip python \ tesseract \ tesseract-langpack-eng \ - git - + git \ + java-1.8.0-openjdk-devel \ + gtk3-devel \ + glib2-devel \ + glibmm24-devel \ + libtool \ + cmake gcc-c++ \ + python3-devel \ + python3-pip \ + gperf \ + boost-devel \ + gstreamer1-devel \ + gstreamer1-plugins-base-devel \ + libpng-devel \ + libjpeg-devel \ + libtiff-devel \ + libxml2-devel \ + libxslt-devel \ + cups-devel \ + libSM-devel \ + libICE-devel \ + nss-devel nspr-devel \ + libXt-devel \ + bison \ + flex \ + diffutils \ + patch \ + unzip \ + ant \ + junit + +RUN cd /tmp && git clone --depth 1 https://github.com/trimesh/vhacdx && cd vhacdx && \ + CFLAGS="-I /tmp/vhacdx" pip install . && \ + rm -rf /tmp/vhacdx + +RUN python -m pip install scikit-build-core numpy && \ + cd /tmp && git clone --depth 1 https://github.com/elalish/manifold.git && \ + cd manifold && git clone --depth 1 --branch v2021.10.0 https://github.com/oneapi-src/oneTBB.git && \ + python -m pip install --upgrade pip setuptools wheel build nanobind ninja && \ + python -m build --no-isolation --sdist --wheel && \ + python -m pip install dist/manifold3d-*.whl -RUN mkdir -p /tmp/LibreOffice/LibreOffice && \ - wget -O /tmp/LibreOffice/LibreOffice.tar.gz https://mirrors.cloud.tencent.com/libreoffice/libreoffice/stable/24.8.2/rpm/x86_64/LibreOffice_24.8.2_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.2/rpm/x86_64/LibreOffice_24.8.2_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.2/rpm/x86_64/LibreOffice_24.8.2_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 +RUN git clone --depth 1 https://git.libreoffice.org/core /tmp/libreoffice && \ + cd /tmp/libreoffice && chmod +x ./autogen.sh && bash -x ./autogen.sh && \ + make -j "$(nproc)" && make install && \ + rm -rf /tmp/libreoffice RUN useradd -m -s /bin/bash user && \ mkdir -p /home/user && \ @@ -43,9 +73,8 @@ 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 . && \ +RUN git clone --depth=1 --branch v1.0 https://github.com/opea-project/GenAIComps.git && \ + cp -r GenAIComps/comps . && \ rm -rf GenAIComps RUN pip install --no-cache-dir --upgrade pip setuptools && \ diff --git a/dataprep-redis-langchain/meta.yml b/dataprep-redis-langchain/meta.yml index 079bce74ffbb5719b4156a40aee6ddce68072326..1d60ced31a9b377104b24da20c3cc7a65f5f341d 100644 --- a/dataprep-redis-langchain/meta.yml +++ b/dataprep-redis-langchain/meta.yml @@ -1,3 +1,2 @@ 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 + path: dataprep-redis-langchain/0.3.4-redis5.1.1/24.03-lts/Dockerfile \ No newline at end of file diff --git a/embedding-tei-langchain/0.3.3/24.03-lts/Dockerfile b/embedding-tei-langchain/0.3.3/24.03-lts/Dockerfile index 5825344d338ecdf93ac635db1bd6a2e106f7afa0..54e1bfd3e104ad13a5460998cb0db8d62913cf29 100644 --- a/embedding-tei-langchain/0.3.3/24.03-lts/Dockerfile +++ b/embedding-tei-langchain/0.3.3/24.03-lts/Dockerfile @@ -8,27 +8,37 @@ ARG ARCH="cpu" RUN yum update -y && \ yum install -y \ --setopt=install_weak_deps=False \ - python-pip python \ + python-pip python python3-devel \ + cmake gcc-c++ git \ shadow-utils \ mesa-libGL \ jemalloc-devel \ git -RUN useradd -m -s /bin/bash user && \ - mkdir -p /home/user && \ - chown -R user /home/user/ +RUN cd /tmp && git clone --depth 1 https://github.com/trimesh/vhacdx && cd vhacdx && \ + CFLAGS="-I /tmp/vhacdx" pip install . && \ + rm -rf /tmp/vhacdx -USER user +RUN python -m pip install scikit-build-core numpy && \ + cd /tmp && git clone --depth 1 https://github.com/elalish/manifold.git && \ + cd manifold && git clone --depth 1 --branch v2021.10.0 https://github.com/oneapi-src/oneTBB.git && \ + python -m pip install --upgrade pip setuptools wheel build nanobind ninja && \ + python -m build --no-isolation --sdist --wheel && \ + python -m pip install dist/manifold3d-*.whl WORKDIR /home/user/ -RUN git clone https://github.com/opea-project/GenAIComps.git && cd GenAIComps && git checkout v1.0 - -RUN cp -r GenAIComps/comps . && \ +RUN git clone --depth=1 --branch v1.0 https://github.com/opea-project/GenAIComps.git && \ + 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 --index-url https://download.pytorch.org/whl/cpu; fi && \ +RUN useradd -m -s /bin/bash user && \ + mkdir -p /home/user && \ + chown -R user /home/user/ + +USER user + +RUN if [ ${ARCH} = "cpu" ]; then pip install --no-cache-dir torch --index-url https://download.pytorch.org/whl/cpu; fi && \ pip install --no-cache-dir -r /home/user/comps/embeddings/tei/langchain/requirements.txt ENV PYTHONPATH=/usr/bin/python:/home/user diff --git a/embedding-tei-langchain/meta.yml b/embedding-tei-langchain/meta.yml index 945e7c910bdc132ad17a1f2617d85b93cdcaf6f5..1192bf09cd84c37ebb648b33d258821771ccc8c4 100644 --- a/embedding-tei-langchain/meta.yml +++ b/embedding-tei-langchain/meta.yml @@ -1,3 +1,2 @@ 0.3.3-oe2403lts: - path: embedding-tei-langchain/0.3.3/24.03-lts/Dockerfile - arch: x86_64 \ No newline at end of file + path: embedding-tei-langchain/0.3.3/24.03-lts/Dockerfile \ No newline at end of file