Skip to content

Commit ad21d3a

Browse files
fix: force infiniband libraries reinstall when building container (#3343)
Signed-off-by: Thomas Vegas <[email protected]> Signed-off-by: Thomas Vegas <[email protected]> Co-authored-by: Harrison Saturley-Hall <[email protected]>
1 parent ba486b6 commit ad21d3a

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

container/Dockerfile

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -122,22 +122,28 @@ RUN apt-get update -y \
122122
net-tools \
123123
ninja-build \
124124
pybind11-dev \
125-
# These headers are missing with the hpcx installer, required
126-
# by UCX to find RDMA devices
127-
ibverbs-providers \
128-
ibverbs-utils \
129-
libibumad-dev \
130-
libibverbs-dev \
131-
librdmacm-dev \
132-
libnuma-dev \
133-
rdma-core \
134125
# Rust build dependencies
135126
clang \
136127
libclang-dev \
137128
protobuf-compiler \
138129
&& apt-get clean \
139130
&& rm -rf /var/lib/apt/lists/*
140131

132+
# These headers are missing with the hpcx installer, required
133+
# by UCX to build and use RDMA devices. Reinstall to make sure to recreate
134+
# symlink .so to .so.1 in case some packages are already found.
135+
RUN apt-get update -y \
136+
&& DEBIAN_FRONTEND=noninteractive apt-get -y install --reinstall --no-install-recommends \
137+
libibverbs-dev \
138+
rdma-core \
139+
ibverbs-utils \
140+
libibumad-dev \
141+
libnuma-dev \
142+
librdmacm-dev \
143+
ibverbs-providers \
144+
&& apt-get clean \
145+
&& rm -rf /var/lib/apt/lists/*
146+
141147
##################################
142148
########## External Services #####
143149
##################################

0 commit comments

Comments
 (0)