(build) fetchcontent use archives instead of git

This commit is contained in:
Morgan Funtowicz 2024-08-08 09:44:15 +02:00
parent 089c5fe668
commit dddc9a44bd
3 changed files with 3 additions and 4 deletions

View File

@ -86,6 +86,7 @@ FROM nvidia/cuda:12.5.1-cudnn-runtime-ubuntu22.04 AS runtime
WORKDIR /usr/local/tgi/bin WORKDIR /usr/local/tgi/bin
ENV LD_LIBRARY_PATH="/usr/local/tgi/lib:/usr/local/tensorrt/lib:/usr/local/cuda/lib64/stubs:$LD_LIBRARY_PATH" ENV LD_LIBRARY_PATH="/usr/local/tgi/lib:/usr/local/tensorrt/lib:/usr/local/cuda/lib64/stubs:$LD_LIBRARY_PATH"
ENV OMPI_MCA_plm_rsh_agent=""
COPY --from=mpi-builder /usr/local/mpi /usr/local/mpi COPY --from=mpi-builder /usr/local/mpi /usr/local/mpi
COPY --from=trt-builder /usr/local/tensorrt /usr/local/tensorrt COPY --from=trt-builder /usr/local/tensorrt /usr/local/tensorrt

View File

@ -1,6 +1,5 @@
FetchContent_Declare( FetchContent_Declare(
fmt fmt
GIT_REPOSITORY https://github.com/fmtlib/fmt URL https://github.com/fmtlib/fmt/archive/refs/tags/11.0.2.tar.gz
GIT_TAG 11.0.1
) )
FetchContent_MakeAvailable(fmt) FetchContent_MakeAvailable(fmt)

View File

@ -11,7 +11,6 @@ endif ()
fetchcontent_declare( fetchcontent_declare(
spdlog spdlog
GIT_REPOSITORY https://github.com/gabime/spdlog.git URL https://github.com/gabime/spdlog/archive/refs/tags/v1.14.1.tar.gz
GIT_TAG v1.14.1
) )
fetchcontent_makeavailable(spdlog) fetchcontent_makeavailable(spdlog)