mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-07 01:28:27 +08:00
enhance: specify version while rust-init (#29108)
This will reduce the size of builder image. /kind improvement --------- Signed-off-by: longjiquan <jiquan.long@zilliz.com>
This commit is contained in:
parent
520c07ec9d
commit
4651f89944
@ -23,8 +23,9 @@ RUN pip3 install conan==1.61.0
|
|||||||
RUN echo "target arch $TARGETARCH"
|
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.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 && \
|
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/refs/tags/2023.11.20.tar.gz | tar --strip-components=1 -xz -C /opt/vcpkg && \
|
||||||
rm -rf vcpkg.tar.gz
|
rm -rf vcpkg.tar.gz
|
||||||
|
|
||||||
ENV VCPKG_FORCE_SYSTEM_BINARIES 1
|
ENV VCPKG_FORCE_SYSTEM_BINARIES 1
|
||||||
@ -48,11 +49,9 @@ RUN mkdir -p /home/milvus/.vscode-server/extensions \
|
|||||||
COPY --chown=0:0 build/docker/builder/entrypoint.sh /
|
COPY --chown=0:0 build/docker/builder/entrypoint.sh /
|
||||||
|
|
||||||
RUN curl https://sh.rustup.rs -sSf | \
|
RUN curl https://sh.rustup.rs -sSf | \
|
||||||
sh -s -- --default-toolchain stable -y
|
sh -s -- --default-toolchain=1.73 -y
|
||||||
|
|
||||||
ENV PATH=/root/.cargo/bin:$PATH
|
ENV PATH=/root/.cargo/bin:$PATH
|
||||||
|
|
||||||
RUN rustup install 1.73 && rustup default 1.73
|
|
||||||
|
|
||||||
ENTRYPOINT [ "/entrypoint.sh" ]
|
ENTRYPOINT [ "/entrypoint.sh" ]
|
||||||
CMD ["tail", "-f", "/dev/null"]
|
CMD ["tail", "-f", "/dev/null"]
|
||||||
|
|||||||
@ -53,11 +53,9 @@ RUN mkdir -p /home/milvus/.vscode-server/extensions \
|
|||||||
COPY --chown=0:0 build/docker/builder/entrypoint.sh /
|
COPY --chown=0:0 build/docker/builder/entrypoint.sh /
|
||||||
|
|
||||||
RUN curl https://sh.rustup.rs -sSf | \
|
RUN curl https://sh.rustup.rs -sSf | \
|
||||||
sh -s -- --default-toolchain stable -y
|
sh -s -- --default-toolchain=1.73 -y
|
||||||
|
|
||||||
ENV PATH=/root/.cargo/bin:$PATH
|
ENV PATH=/root/.cargo/bin:$PATH
|
||||||
|
|
||||||
RUN rustup install 1.73 && rustup default 1.73
|
|
||||||
|
|
||||||
ENTRYPOINT [ "/entrypoint.sh" ]
|
ENTRYPOINT [ "/entrypoint.sh" ]
|
||||||
CMD ["tail", "-f", "/dev/null"]
|
CMD ["tail", "-f", "/dev/null"]
|
||||||
|
|||||||
@ -87,11 +87,9 @@ RUN wget -O /tini https://github.com/krallin/tini/releases/download/v0.19.0/tini
|
|||||||
chmod +x /tini
|
chmod +x /tini
|
||||||
|
|
||||||
RUN curl https://sh.rustup.rs -sSf | \
|
RUN curl https://sh.rustup.rs -sSf | \
|
||||||
sh -s -- --default-toolchain stable -y
|
sh -s -- --default-toolchain=1.73 -y
|
||||||
|
|
||||||
ENV PATH=/root/.cargo/bin:$PATH
|
ENV PATH=/root/.cargo/bin:$PATH
|
||||||
|
|
||||||
RUN rustup install 1.73 && rustup default 1.73
|
|
||||||
|
|
||||||
ENTRYPOINT [ "/tini", "--", "autouseradd", "--user", "milvus", "--", "/entrypoint.sh" ]
|
ENTRYPOINT [ "/tini", "--", "autouseradd", "--user", "milvus", "--", "/entrypoint.sh" ]
|
||||||
CMD ["tail", "-f", "/dev/null"]
|
CMD ["tail", "-f", "/dev/null"]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user