Skip to content

Commit 0e36c85

Browse files
[UX] Pre-build a EFA version of the default Docker image #2793
1 parent 76ed3bc commit 0e36c85

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

docker/base/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ COPY --from=builder ${NCCL_TESTS_HOME}/build ${NCCL_TESTS_HOME}
6060
ARG FLAVOR
6161

6262
# Configure library paths
63-
RUN apt-get install -y --no-install-recommends openmpi-bin \
63+
RUN apt-get update \
64+
&& apt-get install -y --no-install-recommends openmpi-bin \
6465
&& if [ "$FLAVOR" = "devel" ]; then \
6566
cuda_version=$(echo ${CUDA_VERSION} | awk -F . '{ print $1"-"$2 }') \
6667
&& apt-get install -y --no-install-recommends \

docker/base/efa.Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ ARG NCCL_VERSION=2.26.2-1
1414
ARG OFI_VERSION=1.14.0
1515
ARG FLAVOR
1616

17-
RUN cuda_version=$(echo ${CUDA_VERSION} | awk -F . '{ print $1"-"$2 }') \
17+
RUN apt-get update \
18+
&& cuda_version=$(echo ${CUDA_VERSION} | awk -F . '{ print $1"-"$2 }') \
1819
&& apt-get install -y --no-install-recommends \
1920
cuda-libraries-dev-${cuda_version} \
2021
cuda-nvcc-${cuda_version} \

0 commit comments

Comments
 (0)