Skip to content

Commit 9e0e1ac

Browse files
committed
Add apt-get retries for docker containers
1 parent 936a86d commit 9e0e1ac

4 files changed

Lines changed: 12 additions & 16 deletions

File tree

container/ubuntu22-cuda11/Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM nvcr.io/nvidia/cuda:11.8.0-cudnn8-devel-ubuntu22.04
22

3-
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -qq -y install \
3+
RUN apt-get -o Acquire::Retries=3 update && DEBIAN_FRONTEND=noninteractive apt-get -o Acquire::Retries=3 -qq -y install \
44
build-essential \
55
curl \
66
clang \
@@ -12,7 +12,7 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -qq -y install \
1212
rm -rf /var/lib/apt/lists/*
1313

1414
# Needed to build `path_tracer`, `optix/ex03_window` example
15-
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -qq -y install \
15+
RUN apt-get -o Acquire::Retries=3 update && DEBIAN_FRONTEND=noninteractive apt-get -o Acquire::Retries=3 -qq -y install \
1616
cmake \
1717
libfontconfig-dev \
1818
libx11-xcb-dev \
@@ -26,7 +26,7 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -qq -y install \
2626
WORKDIR /data/llvm7
2727

2828
# Install dependencies for building LLVM
29-
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -qq -y install \
29+
RUN apt-get -o Acquire::Retries=3 update && DEBIAN_FRONTEND=noninteractive apt-get -o Acquire::Retries=3 -qq -y install \
3030
libffi-dev \
3131
libedit-dev \
3232
libncurses5-dev \
@@ -79,4 +79,3 @@ RUN --mount=type=bind,source=rust-toolchain.toml,target=/data/rust-cuda/rust-too
7979
ENV LD_LIBRARY_PATH="/usr/local/cuda/nvvm/lib64:${LD_LIBRARY_PATH}"
8080
ENV LLVM_LINK_STATIC=1
8181
ENV RUST_LOG=info
82-

container/ubuntu22-cuda12/Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM nvcr.io/nvidia/cuda:12.8.1-cudnn-devel-ubuntu22.04
22

3-
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -qq -y install \
3+
RUN apt-get -o Acquire::Retries=3 update && DEBIAN_FRONTEND=noninteractive apt-get -o Acquire::Retries=3 -qq -y install \
44
build-essential \
55
curl \
66
clang \
@@ -12,7 +12,7 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -qq -y install \
1212
rm -rf /var/lib/apt/lists/*
1313

1414
# Needed to build `path_tracer`, `optix/ex03_window` example
15-
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -qq -y install \
15+
RUN apt-get -o Acquire::Retries=3 update && DEBIAN_FRONTEND=noninteractive apt-get -o Acquire::Retries=3 -qq -y install \
1616
cmake \
1717
libfontconfig-dev \
1818
libx11-xcb-dev \
@@ -26,7 +26,7 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -qq -y install \
2626
WORKDIR /data/llvm7
2727

2828
# Install dependencies for building LLVM
29-
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -qq -y install \
29+
RUN apt-get -o Acquire::Retries=3 update && DEBIAN_FRONTEND=noninteractive apt-get -o Acquire::Retries=3 -qq -y install \
3030
libffi-dev \
3131
libedit-dev \
3232
libncurses5-dev \
@@ -79,4 +79,3 @@ RUN --mount=type=bind,source=rust-toolchain.toml,target=/data/rust-cuda/rust-too
7979
ENV LD_LIBRARY_PATH="/usr/local/cuda/nvvm/lib64:${LD_LIBRARY_PATH}"
8080
ENV LLVM_LINK_STATIC=1
8181
ENV RUST_LOG=info
82-

container/ubuntu24-cuda12-llvmdebug/Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM nvcr.io/nvidia/cuda:12.8.1-cudnn-devel-ubuntu24.04
22

3-
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -qq -y install \
3+
RUN apt-get -o Acquire::Retries=3 update && DEBIAN_FRONTEND=noninteractive apt-get -o Acquire::Retries=3 -qq -y install \
44
build-essential \
55
clang \
66
curl \
@@ -12,7 +12,7 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -qq -y install \
1212
rm -rf /var/lib/apt/lists/*
1313

1414
# Needed to build `path_tracer`, `optix/ex03_window` example
15-
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -qq -y install \
15+
RUN apt-get -o Acquire::Retries=3 update && DEBIAN_FRONTEND=noninteractive apt-get -o Acquire::Retries=3 -qq -y install \
1616
cmake \
1717
libfontconfig-dev \
1818
libx11-xcb-dev \
@@ -26,7 +26,7 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -qq -y install \
2626
WORKDIR /data/llvm7
2727

2828
# Install dependencies for building LLVM
29-
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -qq -y install \
29+
RUN apt-get -o Acquire::Retries=3 update && DEBIAN_FRONTEND=noninteractive apt-get -o Acquire::Retries=3 -qq -y install \
3030
libffi-dev \
3131
libedit-dev \
3232
libncurses5-dev \
@@ -79,4 +79,3 @@ RUN --mount=type=bind,source=rust-toolchain.toml,target=/data/Rust-CUDA/rust-too
7979
ENV LD_LIBRARY_PATH="/usr/local/cuda/nvvm/lib64:${LD_LIBRARY_PATH}"
8080
ENV LLVM_LINK_STATIC=1
8181
ENV RUST_LOG=info
82-

container/ubuntu24-cuda12/Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM nvcr.io/nvidia/cuda:12.8.1-cudnn-devel-ubuntu24.04
22

3-
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -qq -y install \
3+
RUN apt-get -o Acquire::Retries=3 update && DEBIAN_FRONTEND=noninteractive apt-get -o Acquire::Retries=3 -qq -y install \
44
build-essential \
55
clang \
66
curl \
@@ -12,7 +12,7 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -qq -y install \
1212
rm -rf /var/lib/apt/lists/*
1313

1414
# Needed to build `path_tracer`, `optix/ex03_window` example
15-
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -qq -y install \
15+
RUN apt-get -o Acquire::Retries=3 update && DEBIAN_FRONTEND=noninteractive apt-get -o Acquire::Retries=3 -qq -y install \
1616
cmake \
1717
libfontconfig-dev \
1818
libx11-xcb-dev \
@@ -26,7 +26,7 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -qq -y install \
2626
WORKDIR /data/llvm7
2727

2828
# Install dependencies for building LLVM
29-
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -qq -y install \
29+
RUN apt-get -o Acquire::Retries=3 update && DEBIAN_FRONTEND=noninteractive apt-get -o Acquire::Retries=3 -qq -y install \
3030
libffi-dev \
3131
libedit-dev \
3232
libncurses5-dev \
@@ -79,4 +79,3 @@ RUN --mount=type=bind,source=rust-toolchain.toml,target=/data/rust-cuda/rust-too
7979
ENV LD_LIBRARY_PATH="/usr/local/cuda/nvvm/lib64:${LD_LIBRARY_PATH}"
8080
ENV LLVM_LINK_STATIC=1
8181
ENV RUST_LOG=info
82-

0 commit comments

Comments
 (0)