Skip to content

Commit 412061e

Browse files
committed
Add Ubuntu22
Signed-off-by: Alexey Rivkin <[email protected]>
1 parent 376fa40 commit 412061e

File tree

3 files changed

+22
-21
lines changed

3 files changed

+22
-21
lines changed

.ci/jenkins/lib/build-matrix.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,13 @@ runs_on_dockers:
4545
tag: "02112025",
4646
build_args: "--target nixl-base --build-arg ARCH=$arch"
4747
}
48-
# - {
49-
# file: "contrib/Dockerfile",
50-
# name: "ubuntu22.04-nixl-deps",
51-
# uri: "$arch/$name",
52-
# tag: "02112025",
53-
# build_args: "--target nixl-base --build-arg BASE_IMAGE_TAG=24.10-cuda12.6-devel-ubuntu22.04"
54-
# }
48+
- {
49+
file: "contrib/Dockerfile",
50+
name: "ubuntu22.04-nixl-deps",
51+
uri: "$arch/$name",
52+
tag: "02112025",
53+
build_args: "--target nixl-base --build-arg ARCH=$arch --build-arg BASE_IMAGE_TAG=24.10-cuda12.6-devel-ubuntu22.04"
54+
}
5555
# - { name: "podman-v5.0.2", url: "quay.io/podman/stable:v5.0.2", category: 'tool', privileged: true }
5656

5757
matrix:

.gitlab/build.sh

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -109,17 +109,6 @@ $SUDO apt-get -qq install -y python3-dev \
109109
libhwloc-dev \
110110
libcurl4-openssl-dev zlib1g-dev # aws-sdk-cpp dependencies
111111

112-
# Ubuntu 22.04 specific setup
113-
if grep -q "Ubuntu 22.04" /etc/os-release 2>/dev/null; then
114-
# Upgrade pip for '--break-system-packages' support
115-
$SUDO pip3 install --upgrade pip
116-
117-
# Upgrade meson (distro version 0.61.2 is too old, project requires >= 0.64.0)
118-
$SUDO pip3 install --upgrade meson
119-
# Ensure pip3's meson takes precedence over apt's version
120-
export PATH="$HOME/.local/bin:/usr/local/bin:$PATH"
121-
fi
122-
123112
# Add DOCA repository and install packages
124113
ARCH_SUFFIX=$(if [ "${ARCH}" = "aarch64" ]; then echo "arm64"; else echo "amd64"; fi)
125114
MELLANOX_OS="$(. /etc/lsb-release; echo ${DISTRIB_ID}${DISTRIB_RELEASE} | tr A-Z a-z | tr -d .)"
@@ -223,6 +212,16 @@ rm "libfabric-${LIBFABRIC_VERSION#v}.tar.bz2"
223212

224213
fi # end NIXL_BASE_IMAGE_ENV check
225214

215+
# Ubuntu 22.04 specific setup
216+
if grep -q "Ubuntu 22.04" /etc/os-release 2>/dev/null; then
217+
# Upgrade pip for '--break-system-packages' support
218+
$SUDO pip3 install --upgrade pip
219+
# Upgrade meson (distro version 0.61.2 is too old, project requires >= 0.64.0)
220+
$SUDO pip3 install --upgrade meson
221+
# Ensure pip3's meson takes precedence over apt's version
222+
export PATH="$HOME/.local/bin:/usr/local/bin:$PATH"
223+
fi
224+
226225
export LD_LIBRARY_PATH="${INSTALL_DIR}/lib:${INSTALL_DIR}/lib/$ARCH-linux-gnu:${INSTALL_DIR}/lib64:$LD_LIBRARY_PATH:${LIBFABRIC_INSTALL_DIR}/lib"
227226
export CPATH="${INSTALL_DIR}/include:${LIBFABRIC_INSTALL_DIR}/include:$CPATH"
228227
export PATH="${INSTALL_DIR}/bin:$PATH"

contrib/Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ RUN apt-get update -y && \
5858
flex \
5959
libgtest-dev \
6060
build-essential \
61-
python3.12-dev \
6261
clang \
6362
hwloc \
6463
libhwloc-dev \
@@ -146,8 +145,11 @@ RUN wget --tries=3 --waitretry=5 \
146145
rm rustup-init* && \
147146
chmod -R a+w $RUSTUP_HOME $CARGO_HOME
148147

149-
RUN rm -rf /usr/lib/ucx
150-
RUN rm -rf /opt/hpcx/ucx
148+
# Clean up old UCX installations to avoid conflicts
149+
RUN rm -rf /usr/lib/ucx /opt/hpcx/ucx /usr/local/ucx && \
150+
ARCH=$(uname -m) && \
151+
rm -f /usr/lib/${ARCH}-linux-gnu/libucs* /usr/lib/${ARCH}-linux-gnu/libucp* \
152+
/usr/lib/${ARCH}-linux-gnu/libuct* /usr/lib/${ARCH}-linux-gnu/libucm* 2>/dev/null || true
151153

152154
RUN cd /usr/local/src && \
153155
git clone https://github.com/openucx/ucx.git && \

0 commit comments

Comments
 (0)