[AMD] Retry transient network failures in ROCm Dockerfile curl fetches (#35654)
This commit is contained in:
@@ -246,7 +246,7 @@ RUN set -eux; \
|
|||||||
case "${GPU_ARCH}" in \
|
case "${GPU_ARCH}" in \
|
||||||
*rocm724*) \
|
*rocm724*) \
|
||||||
echo "ROCm 7.2.4 (GPU_ARCH=${GPU_ARCH}): installing libdrm-amdgpu from graphics/7.2.4 noble"; \
|
echo "ROCm 7.2.4 (GPU_ARCH=${GPU_ARCH}): installing libdrm-amdgpu from graphics/7.2.4 noble"; \
|
||||||
curl -fsSL https://repo.radeon.com/rocm/rocm.gpg.key \
|
curl -fsSL --retry 5 --retry-delay 3 --retry-all-errors https://repo.radeon.com/rocm/rocm.gpg.key \
|
||||||
| gpg --dearmor -o /etc/apt/keyrings/amdgpu-graphics.gpg \
|
| gpg --dearmor -o /etc/apt/keyrings/amdgpu-graphics.gpg \
|
||||||
&& echo 'deb [arch=amd64,i386 signed-by=/etc/apt/keyrings/amdgpu-graphics.gpg] https://repo.radeon.com/graphics/7.2.4/ubuntu noble main' \
|
&& echo 'deb [arch=amd64,i386 signed-by=/etc/apt/keyrings/amdgpu-graphics.gpg] https://repo.radeon.com/graphics/7.2.4/ubuntu noble main' \
|
||||||
> /etc/apt/sources.list.d/amdgpu-graphics.list \
|
> /etc/apt/sources.list.d/amdgpu-graphics.list \
|
||||||
@@ -263,7 +263,7 @@ RUN set -eux; \
|
|||||||
;; \
|
;; \
|
||||||
*) \
|
*) \
|
||||||
echo "ROCm 7.0 (GPU_ARCH=${GPU_ARCH}): installing libdrm-amdgpu packages"; \
|
echo "ROCm 7.0 (GPU_ARCH=${GPU_ARCH}): installing libdrm-amdgpu packages"; \
|
||||||
curl -fsSL https://repo.radeon.com/rocm/rocm.gpg.key \
|
curl -fsSL --retry 5 --retry-delay 3 --retry-all-errors https://repo.radeon.com/rocm/rocm.gpg.key \
|
||||||
| gpg --dearmor -o /etc/apt/keyrings/amdgpu-graphics.gpg \
|
| gpg --dearmor -o /etc/apt/keyrings/amdgpu-graphics.gpg \
|
||||||
&& echo 'deb [arch=amd64,i386 signed-by=/etc/apt/keyrings/amdgpu-graphics.gpg] https://repo.radeon.com/graphics/7.0/ubuntu jammy main' \
|
&& echo 'deb [arch=amd64,i386 signed-by=/etc/apt/keyrings/amdgpu-graphics.gpg] https://repo.radeon.com/graphics/7.0/ubuntu jammy main' \
|
||||||
> /etc/apt/sources.list.d/amdgpu-graphics.list \
|
> /etc/apt/sources.list.d/amdgpu-graphics.list \
|
||||||
@@ -436,7 +436,7 @@ RUN pip install IPython \
|
|||||||
# (sglang.srt.rust_extensions._multimodal) during the sglang pip install below
|
# (sglang.srt.rust_extensions._multimodal) during the sglang pip install below
|
||||||
# and later by sgl-model-gateway. Must precede the sglang install.
|
# and later by sgl-model-gateway. Must precede the sglang install.
|
||||||
ENV PATH="/root/.cargo/bin:${PATH}"
|
ENV PATH="/root/.cargo/bin:${PATH}"
|
||||||
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y \
|
RUN curl --proto '=https' --tlsv1.2 --retry 5 --retry-delay 3 --retry-all-errors -sSf https://sh.rustup.rs | sh -s -- -y \
|
||||||
&& rustc --version && cargo --version
|
&& rustc --version && cargo --version
|
||||||
ENV CARGO_BUILD_JOBS=4
|
ENV CARGO_BUILD_JOBS=4
|
||||||
|
|
||||||
@@ -552,7 +552,7 @@ RUN /bin/bash -lc 'set -euo pipefail; \
|
|||||||
done; \
|
done; \
|
||||||
if [ -z "$LLVM_CONFIG_PATH" ]; then \
|
if [ -z "$LLVM_CONFIG_PATH" ]; then \
|
||||||
echo "[TileLang] ROCm llvm-config not found; installing LLVM 18..."; \
|
echo "[TileLang] ROCm llvm-config not found; installing LLVM 18..."; \
|
||||||
curl -fsSL https://apt.llvm.org/llvm-snapshot.gpg.key | gpg --dearmor -o /etc/apt/keyrings/llvm.gpg; \
|
curl -fsSL --retry 5 --retry-delay 3 --retry-all-errors https://apt.llvm.org/llvm-snapshot.gpg.key | gpg --dearmor -o /etc/apt/keyrings/llvm.gpg; \
|
||||||
echo "deb [signed-by=/etc/apt/keyrings/llvm.gpg] http://apt.llvm.org/jammy/ llvm-toolchain-jammy-18 main" > /etc/apt/sources.list.d/llvm.list; \
|
echo "deb [signed-by=/etc/apt/keyrings/llvm.gpg] http://apt.llvm.org/jammy/ llvm-toolchain-jammy-18 main" > /etc/apt/sources.list.d/llvm.list; \
|
||||||
apt-get update; \
|
apt-get update; \
|
||||||
apt-get install -y --no-install-recommends llvm-18; \
|
apt-get install -y --no-install-recommends llvm-18; \
|
||||||
@@ -626,7 +626,7 @@ RUN /bin/bash -lc 'set -euo pipefail; \
|
|||||||
none) \
|
none) \
|
||||||
apt-get update && apt-get install -y --no-install-recommends ca-certificates curl gnupg apt-transport-https && \
|
apt-get update && apt-get install -y --no-install-recommends ca-certificates curl gnupg apt-transport-https && \
|
||||||
rm -rf /var/lib/apt/lists/* && mkdir -p /etc/apt/keyrings; \
|
rm -rf /var/lib/apt/lists/* && mkdir -p /etc/apt/keyrings; \
|
||||||
curl -fsSL https://repo.radeon.com/rocm/rocm.gpg.key | gpg --dearmor > /etc/apt/keyrings/amdainic.gpg; \
|
curl -fsSL --retry 5 --retry-delay 3 --retry-all-errors https://repo.radeon.com/rocm/rocm.gpg.key | gpg --dearmor > /etc/apt/keyrings/amdainic.gpg; \
|
||||||
echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/amdainic.gpg] https://repo.radeon.com/amdainic/pensando/ubuntu/${AINIC_VERSION} ${UBUNTU_CODENAME} main" \
|
echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/amdainic.gpg] https://repo.radeon.com/amdainic/pensando/ubuntu/${AINIC_VERSION} ${UBUNTU_CODENAME} main" \
|
||||||
> /etc/apt/sources.list.d/amdainic.list; \
|
> /etc/apt/sources.list.d/amdainic.list; \
|
||||||
apt-get update && apt-get install -y --no-install-recommends \
|
apt-get update && apt-get install -y --no-install-recommends \
|
||||||
@@ -635,7 +635,7 @@ RUN /bin/bash -lc 'set -euo pipefail; \
|
|||||||
; \
|
; \
|
||||||
rm -rf /var/lib/apt/lists/*; \
|
rm -rf /var/lib/apt/lists/*; \
|
||||||
install -m 0755 -d /etc/apt/keyrings \
|
install -m 0755 -d /etc/apt/keyrings \
|
||||||
&& curl -fsSL https://packages.broadcom.com/artifactory/api/security/keypair/PackagesKey/public -o /etc/apt/keyrings/broadcom-nic.asc \
|
&& curl -fsSL --retry 5 --retry-delay 3 --retry-all-errors https://packages.broadcom.com/artifactory/api/security/keypair/PackagesKey/public -o /etc/apt/keyrings/broadcom-nic.asc \
|
||||||
&& chmod a+r /etc/apt/keyrings/broadcom-nic.asc \
|
&& chmod a+r /etc/apt/keyrings/broadcom-nic.asc \
|
||||||
&& echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/broadcom-nic.asc] https://packages.broadcom.com/artifactory/ethernet-nic-debian-public jammy main" > /etc/apt/sources.list.d/broadcom-nic.list \
|
&& echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/broadcom-nic.asc] https://packages.broadcom.com/artifactory/ethernet-nic-debian-public jammy main" > /etc/apt/sources.list.d/broadcom-nic.list \
|
||||||
&& apt-get update \
|
&& apt-get update \
|
||||||
@@ -646,7 +646,7 @@ RUN /bin/bash -lc 'set -euo pipefail; \
|
|||||||
ainic) \
|
ainic) \
|
||||||
apt-get update && apt-get install -y --no-install-recommends ca-certificates curl gnupg apt-transport-https && \
|
apt-get update && apt-get install -y --no-install-recommends ca-certificates curl gnupg apt-transport-https && \
|
||||||
rm -rf /var/lib/apt/lists/* && mkdir -p /etc/apt/keyrings; \
|
rm -rf /var/lib/apt/lists/* && mkdir -p /etc/apt/keyrings; \
|
||||||
curl -fsSL https://repo.radeon.com/rocm/rocm.gpg.key | gpg --dearmor > /etc/apt/keyrings/amdainic.gpg; \
|
curl -fsSL --retry 5 --retry-delay 3 --retry-all-errors https://repo.radeon.com/rocm/rocm.gpg.key | gpg --dearmor > /etc/apt/keyrings/amdainic.gpg; \
|
||||||
echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/amdainic.gpg] https://repo.radeon.com/amdainic/pensando/ubuntu/${AINIC_VERSION} ${UBUNTU_CODENAME} main" \
|
echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/amdainic.gpg] https://repo.radeon.com/amdainic/pensando/ubuntu/${AINIC_VERSION} ${UBUNTU_CODENAME} main" \
|
||||||
> /etc/apt/sources.list.d/amdainic.list; \
|
> /etc/apt/sources.list.d/amdainic.list; \
|
||||||
apt-get update && apt-get install -y --no-install-recommends \
|
apt-get update && apt-get install -y --no-install-recommends \
|
||||||
@@ -660,7 +660,7 @@ RUN /bin/bash -lc 'set -euo pipefail; \
|
|||||||
apt-get update \
|
apt-get update \
|
||||||
&& apt-get install -y --no-install-recommends ca-certificates curl \
|
&& apt-get install -y --no-install-recommends ca-certificates curl \
|
||||||
&& install -m 0755 -d /etc/apt/keyrings \
|
&& install -m 0755 -d /etc/apt/keyrings \
|
||||||
&& curl -fsSL https://packages.broadcom.com/artifactory/api/security/keypair/PackagesKey/public -o /etc/apt/keyrings/broadcom-nic.asc \
|
&& curl -fsSL --retry 5 --retry-delay 3 --retry-all-errors https://packages.broadcom.com/artifactory/api/security/keypair/PackagesKey/public -o /etc/apt/keyrings/broadcom-nic.asc \
|
||||||
&& chmod a+r /etc/apt/keyrings/broadcom-nic.asc \
|
&& chmod a+r /etc/apt/keyrings/broadcom-nic.asc \
|
||||||
&& echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/broadcom-nic.asc] https://packages.broadcom.com/artifactory/ethernet-nic-debian-public jammy main" > /etc/apt/sources.list.d/broadcom-nic.list \
|
&& echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/broadcom-nic.asc] https://packages.broadcom.com/artifactory/ethernet-nic-debian-public jammy main" > /etc/apt/sources.list.d/broadcom-nic.list \
|
||||||
&& apt-get update \
|
&& apt-get update \
|
||||||
|
|||||||
Reference in New Issue
Block a user