mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-06 17:18:35 +08:00
enhance: use fixed vcpkg version for build image (#44378)
Signed-off-by: aoiasd <zhicheng.yue@zilliz.com>
This commit is contained in:
parent
634026a177
commit
2b2a11afba
@ -14,7 +14,7 @@ ENV VCPKG_FORCE_SYSTEM_BINARIES 1
|
||||
|
||||
# install vcpkg
|
||||
RUN mkdir /opt/vcpkg && \
|
||||
wget -qO- vcpkg.tar.gz https://github.com/microsoft/vcpkg/archive/master.tar.gz | tar --strip-components=1 -xz -C /opt/vcpkg && \
|
||||
wget -qO- vcpkg.tar.gz https://github.com/microsoft/vcpkg/archive/2025.06.13.tar.gz | tar --strip-components=1 -xz -C /opt/vcpkg && \
|
||||
rm -rf vcpkg.tar.gz
|
||||
|
||||
# empty the vscpkg toolchains linux.cmake file to avoid the error
|
||||
@ -53,7 +53,7 @@ ENV VCPKG_FORCE_SYSTEM_BINARIES 1
|
||||
|
||||
# install vcpkg
|
||||
RUN mkdir /opt/vcpkg && \
|
||||
wget -qO- vcpkg.tar.gz https://github.com/microsoft/vcpkg/archive/master.tar.gz | tar --strip-components=1 -xz -C /opt/vcpkg && \
|
||||
wget -qO- vcpkg.tar.gz https://github.com/microsoft/vcpkg/archive/2025.06.13.tar.gz | tar --strip-components=1 -xz -C /opt/vcpkg && \
|
||||
rm -rf vcpkg.tar.gz
|
||||
# Copy the vcpkg installed libraries
|
||||
COPY --from=vcpkg-installer /root/.cache/vcpkg /root/.cache/vcpkg
|
||||
|
||||
@ -26,7 +26,7 @@ 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 mkdir /opt/vcpkg && \
|
||||
wget -qO- vcpkg.tar.gz https://github.com/microsoft/vcpkg/archive/master.tar.gz | tar --strip-components=1 -xz -C /opt/vcpkg && \
|
||||
wget -qO- vcpkg.tar.gz https://github.com/microsoft/vcpkg/archive/2025.06.13.tar.gz | tar --strip-components=1 -xz -C /opt/vcpkg && \
|
||||
rm -rf vcpkg.tar.gz
|
||||
|
||||
ENV VCPKG_FORCE_SYSTEM_BINARIES 1
|
||||
|
||||
@ -32,7 +32,7 @@ RUN echo "target arch $TARGETARCH"
|
||||
RUN wget -qO- "https://cmake.org/files/v3.31/cmake-3.31.8-linux-`uname -m`.tar.gz" | tar --strip-components=1 -xz -C /usr/local
|
||||
|
||||
RUN mkdir /opt/vcpkg && \
|
||||
wget -qO- vcpkg.tar.gz https://github.com/microsoft/vcpkg/archive/master.tar.gz | tar --strip-components=1 -xz -C /opt/vcpkg && \
|
||||
wget -qO- vcpkg.tar.gz https://github.com/microsoft/vcpkg/archive/2025.06.13.tar.gz | tar --strip-components=1 -xz -C /opt/vcpkg && \
|
||||
rm -rf vcpkg.tar.gz
|
||||
|
||||
ENV VCPKG_FORCE_SYSTEM_BINARIES 1
|
||||
|
||||
@ -25,7 +25,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends wget curl ca-ce
|
||||
RUN pip3 install conan==1.64.1
|
||||
|
||||
RUN mkdir /opt/vcpkg && \
|
||||
wget -qO- vcpkg.tar.gz https://github.com/microsoft/vcpkg/archive/master.tar.gz | tar --strip-components=1 -xz -C /opt/vcpkg && \
|
||||
wget -qO- vcpkg.tar.gz https://github.com/microsoft/vcpkg/archive/2025.06.13.tar.gz | tar --strip-components=1 -xz -C /opt/vcpkg && \
|
||||
rm -rf vcpkg.tar.gz
|
||||
|
||||
ENV VCPKG_FORCE_SYSTEM_BINARIES 1
|
||||
|
||||
@ -22,7 +22,7 @@ RUN curl https://sh.rustup.rs -sSf | \
|
||||
ENV PATH=/root/.cargo/bin:/usr/local/bin:/usr/local/go/bin:$PATH
|
||||
|
||||
RUN mkdir /opt/vcpkg && \
|
||||
wget -qO- vcpkg.tar.gz https://github.com/microsoft/vcpkg/archive/master.tar.gz | tar --strip-components=1 -xz -C /opt/vcpkg && \
|
||||
wget -qO- vcpkg.tar.gz https://github.com/microsoft/vcpkg/archive/2025.06.13.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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user