@tduncan / Nvidia-Optimization-Stack-VLLM Mirror · read-only / commits / 08e15defa9
Fork 0

A high-throughput and memory-efficient inference and serving engine for LLMs

Mirrored from https://github.com/tduncan-lum/Nvidia-Optimization-Stack---VLLM.git

Synced Nov 15, 12:15 UTC

[CI/Build] Add retry mechanism for add-apt-repository (#17107)

Signed-off-by: reidliu41 <reid201711@gmail.com> Co-authored-by: reidliu41 <reid201711@gmail.com>

Reid committed Apr 30, 2025 at 01:40 UTC 08e15defa9e1b48a34d33e88dffe99e69cae1ab0
3 files changed +20 -5
docker/Dockerfile
+8 -2
@@ -19,7 +19,10 @@ RUN echo 'tzdata tzdata/Areas select America' | debconf-set-selections \
19 && echo 'tzdata tzdata/Zones/America select Los_Angeles' | debconf-set-selections \
20 && apt-get update -y \
21 && apt-get install -y ccache software-properties-common git curl sudo \
22 - && add-apt-repository ppa:deadsnakes/ppa \
22 + && for i in 1 2 3; do \
23 + add-apt-repository -y ppa:deadsnakes/ppa && break || \
24 + { echo "Attempt $i failed, retrying in 5s..."; sleep 5; }; \
25 + done \
26 && apt-get update -y \
27 && apt-get install -y python${PYTHON_VERSION} python${PYTHON_VERSION}-dev python${PYTHON_VERSION}-venv \
28 && update-alternatives --install /usr/bin/python3 python3 /usr/bin/python${PYTHON_VERSION} 1 \
@@ -188,7 +191,10 @@ RUN echo 'tzdata tzdata/Areas select America' | debconf-set-selections \
191 && apt-get update -y \
192 && apt-get install -y ccache software-properties-common git curl wget sudo vim python3-pip \
193 && apt-get install -y ffmpeg libsm6 libxext6 libgl1 \
191 - && add-apt-repository ppa:deadsnakes/ppa \
194 + && for i in 1 2 3; do \
195 + add-apt-repository -y ppa:deadsnakes/ppa && break || \
196 + { echo "Attempt $i failed, retrying in 5s..."; sleep 5; }; \
197 + done \
198 && apt-get update -y \
199 && apt-get install -y python${PYTHON_VERSION} python${PYTHON_VERSION}-dev python${PYTHON_VERSION}-venv libibverbs-dev \
200 && update-alternatives --install /usr/bin/python3 python3 /usr/bin/python${PYTHON_VERSION} 1 \
docker/Dockerfile.nightly_torch
+8 -2
@@ -16,7 +16,10 @@ RUN echo 'tzdata tzdata/Areas select America' | debconf-set-selections \
16 && echo 'tzdata tzdata/Zones/America select Los_Angeles' | debconf-set-selections \
17 && apt-get update -y \
18 && apt-get install -y ccache software-properties-common git curl sudo \
19 - && add-apt-repository ppa:deadsnakes/ppa \
19 + && for i in 1 2 3; do \
20 + add-apt-repository -y ppa:deadsnakes/ppa && break || \
21 + { echo "Attempt $i failed, retrying in 5s..."; sleep 5; }; \
22 + done \
23 && apt-get update -y \
24 && apt-get install -y python${PYTHON_VERSION} python${PYTHON_VERSION}-dev python${PYTHON_VERSION}-venv \
25 && update-alternatives --install /usr/bin/python3 python3 /usr/bin/python${PYTHON_VERSION} 1 \
@@ -197,7 +200,10 @@ RUN echo 'tzdata tzdata/Areas select America' | debconf-set-selections \
200 && apt-get update -y \
201 && apt-get install -y ccache software-properties-common git curl wget sudo vim python3-pip \
202 && apt-get install -y ffmpeg libsm6 libxext6 libgl1 \
200 - && add-apt-repository ppa:deadsnakes/ppa \
203 + && for i in 1 2 3; do \
204 + add-apt-repository -y ppa:deadsnakes/ppa && break || \
205 + { echo "Attempt $i failed, retrying in 5s..."; sleep 5; }; \
206 + done \
207 && apt-get update -y \
208 && apt-get install -y python${PYTHON_VERSION} python${PYTHON_VERSION}-dev python${PYTHON_VERSION}-venv libibverbs-dev \
209 && update-alternatives --install /usr/bin/python3 python3 /usr/bin/python${PYTHON_VERSION} 1 \
docker/Dockerfile.rocm_base
+4 -1
@@ -32,7 +32,10 @@ ENV DEBIAN_FRONTEND=noninteractive
32 # Install Python and other dependencies
33 RUN apt-get update -y \
34 && apt-get install -y software-properties-common git curl sudo vim less libgfortran5 \
35 - && add-apt-repository ppa:deadsnakes/ppa \
35 + && for i in 1 2 3; do \
36 + add-apt-repository -y ppa:deadsnakes/ppa && break || \
37 + { echo "Attempt $i failed, retrying in 5s..."; sleep 5; }; \
38 + done \
39 && apt-get update -y \
40 && apt-get install -y python${PYTHON_VERSION} python${PYTHON_VERSION}-dev python${PYTHON_VERSION}-venv \
41 python${PYTHON_VERSION}-lib2to3 python-is-python3 \