forked from milvus-io/milvus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Sammy Huang <[email protected]>
- Loading branch information
1 parent
c8ecee6
commit a7775bd
Showing
3 changed files
with
101 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# Copyright (C) 2019-2022 Zilliz. All rights reserved. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software distributed under the License | ||
# is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express | ||
# or implied. See the License for the specific language governing permissions and limitations under the License. | ||
|
||
FROM rockylinux/rockylinux:9.3 | ||
|
||
ARG TARGETARCH | ||
|
||
|
||
RUN dnf install -y git wget | ||
RUN dnf install -y epel-release | ||
RUN dnf groupinstall -y "Development Tools" | ||
RUN dnf install -y wget curl which \ | ||
git make automake python3-devel python3-pip \ | ||
gcc gcc-c++ gcc-gfortran \ | ||
clang llvm-devel \ | ||
libaio libuuid-devel zip unzip \ | ||
ccache lcov libtool m4 autoconf automake | ||
RUN rm -rf /var/cache/yum/* | ||
|
||
|
||
RUN pip3 install conan==1.61.0 | ||
|
||
RUN echo "target arch $TARGETARCH" | ||
RUN wget -qO- "https://cmake.org/files/v3.27/cmake-3.27.5-linux-`uname -m`.tar.gz" | tar --strip-components=1 -xz -C /usr/local | ||
|
||
# https://github.com/microsoft/vcpkg/pull/35084 | ||
RUN mkdir /opt/vcpkg && \ | ||
wget -qO- vcpkg.tar.gz https://github.com/microsoft/vcpkg/archive/refs/tags/2023.11.20.tar.gz | tar --strip-components=1 -xz -C /opt/vcpkg && \ | ||
rm -rf vcpkg.tar.gz | ||
|
||
ENV VCPKG_FORCE_SYSTEM_BINARIES 1 | ||
|
||
RUN /opt/vcpkg/bootstrap-vcpkg.sh -disableMetrics && ln -s /opt/vcpkg/vcpkg /usr/local/bin/vcpkg && vcpkg version | ||
|
||
RUN vcpkg install azure-identity-cpp azure-storage-blobs-cpp gtest --only-downloads | ||
|
||
RUN mkdir /tmp/ccache && cd /tmp/ccache &&\ | ||
wget https://dl.fedoraproject.org/pub/epel/9/Everything/`uname -m`/Packages/h/hiredis-1.0.2-1.el9.`uname -m`.rpm &&\ | ||
wget https://dl.fedoraproject.org/pub/epel/9/Everything/`uname -m`/Packages/c/ccache-4.5.1-2.el9.`uname -m`.rpm &&\ | ||
rpm -i hiredis-1.0.2-1.el9.`uname -m`.rpm ccache-4.5.1-2.el9.`uname -m`.rpm &&\ | ||
rm -rf /tmp/ccache | ||
|
||
|
||
# refer: https://code.visualstudio.com/docs/remote/containers-advanced#_avoiding-extension-reinstalls-on-container-rebuild | ||
RUN mkdir -p /home/milvus/.vscode-server/extensions \ | ||
/home/milvus/.vscode-server-insiders/extensions \ | ||
&& chmod -R 777 /home/milvus | ||
|
||
COPY --chown=0:0 build/docker/builder/entrypoint.sh / | ||
|
||
RUN curl https://sh.rustup.rs -sSf | \ | ||
sh -s -- --default-toolchain=1.73 -y | ||
|
||
ENV PATH=/root/.cargo/bin:$PATH | ||
|
||
ENTRYPOINT [ "/entrypoint.sh" ] | ||
CMD ["tail", "-f", "/dev/null"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Copyright (C) 2019-2020 Zilliz. All rights reserved. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software distributed under the License | ||
# is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express | ||
# or implied. See the License for the specific language governing permissions and limitations under the License. | ||
|
||
FROM rockylinux/rockylinux:9.3 | ||
|
||
ARG TARGETARCH | ||
|
||
RUN dnf install -y wget libgomp libaio libatomic && \ | ||
rm -rf /var/cache/yum/* | ||
|
||
COPY ./bin/ /milvus/bin/ | ||
|
||
COPY ./configs/ /milvus/configs/ | ||
|
||
COPY ./lib/ /milvus/lib/ | ||
|
||
ENV PATH=/milvus/bin:$PATH | ||
ENV LD_LIBRARY_PATH=/milvus/lib:$LD_LIBRARY_PATH:/usr/lib | ||
ENV LD_PRELOAD=/milvus/lib/libjemalloc.so | ||
ENV MALLOC_CONF=background_thread:true | ||
|
||
# Add Tini | ||
ADD https://github.com/krallin/tini/releases/download/v0.19.0/tini-$TARGETARCH /tini | ||
RUN chmod +x /tini | ||
ENTRYPOINT ["/tini", "--"] | ||
|
||
WORKDIR /milvus |