Skip to content

Commit

Permalink
add .
Browse files Browse the repository at this point in the history
Signed-off-by: Sammy Huang <[email protected]>

delete

Signed-off-by: Sammy Huang <[email protected]>

add

Signed-off-by: Sammy Huang <[email protected]>

1

Signed-off-by: Sammy Huang <[email protected]>
  • Loading branch information
yellow-shine committed Feb 18, 2024
1 parent a7775bd commit a55060a
Showing 1 changed file with 6 additions and 23 deletions.
29 changes: 6 additions & 23 deletions build/docker/builder/cpu/rockylinux9.3/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,32 +27,15 @@ RUN rm -rf /var/cache/yum/*


RUN pip3 install conan==1.61.0
RUN dnf install -y perl

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
RUN wget -qO- "https://cmake.org/files/v3.28/cmake-3.28.1-linux-x86_64.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
RUN wget https://go.dev/dl/go1.21.6.linux-amd64.tar.gz
RUN tar -xvf go1.21.6.linux-amd64.tar.gz -C /usr/local
RUN echo "export PATH=/usr/local/bin:$PATH:/usr/local/go/bin" >> ~/.bashrc
RUN source ~/.bashrc

COPY --chown=0:0 build/docker/builder/entrypoint.sh /

Expand Down

0 comments on commit a55060a

Please sign in to comment.