Skip to content

Commit 562266f

Browse files
[UX] Pre-build a EFA version of the default Docker image #2793
1 parent 5a34a9c commit 562266f

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

docker/base/base-efa.Dockerfile

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,27 @@ ENV OPEN_MPI_PATH=/opt/amazon/openmpi
1010
ENV PATH="${LIBFABRIC_PATH}/bin:${OPEN_MPI_PATH}/bin:${PATH}"
1111
ENV LD_LIBRARY_PATH="${OPEN_MPI_PATH}/lib:${LD_LIBRARY_PATH}"
1212

13-
# prerequisites
14-
15-
RUN cuda_version=$(echo ${CUDA_VERSION} | awk -F . '{ print $1"-"$2 }') \
16-
&& apt-get update \
13+
# Install build dependencies
14+
RUN export DEBIAN_FRONTEND=noninteractive \
15+
&& apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/3bf863cc.pub \
16+
&& apt-get update --fix-missing \
17+
&& apt-get upgrade -y \
18+
&& ln -fs /usr/share/zoneinfo/America/New_York /etc/localtime \
19+
&& apt-get install -y tzdata \
20+
&& dpkg-reconfigure --frontend noninteractive tzdata \
21+
&& cuda_version=$(echo ${CUDA_VERSION} | awk -F . '{ print $1"-"$2 }') \
1722
&& apt-get install -y --no-install-recommends \
1823
cuda-libraries-dev-${cuda_version} \
1924
cuda-nvcc-${cuda_version} \
2025
libhwloc-dev \
2126
autoconf \
2227
automake \
23-
libtool
28+
libtool \
29+
libopenmpi-dev \
30+
git \
31+
curl \
32+
python3 \
33+
build-essential
2434

2535
# EFA
2636

0 commit comments

Comments
 (0)