Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions ci-conda.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -284,9 +284,11 @@ esac
# clear the pip cache, to shrink image size and prevent unintentionally
# pinning CI to older versions of things
pip cache purge
EOF

RUN /opt/conda/bin/git config --system --add safe.directory '*'
# Allow git to clone anywhere (these are images for isolated, short-lived CI containers,
# don't need to worry about this setting intended for long-lived / shared servers)
/opt/conda/bin/git config --system --add safe.directory '*'
EOF

# Add pip.conf
COPY pip.conf /etc/xdg/pip/pip.conf
Expand Down
36 changes: 20 additions & 16 deletions ci-wheel.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,7 @@ SCCACHE_VER=${SCCACHE_VER} \
--gh-cli \
--gha-tools \
--sccache
EOF

RUN <<EOF
case "${LINUX_VER}" in
"ubuntu"*)
rapids-retry apt-get update -y
Expand Down Expand Up @@ -119,24 +117,30 @@ case "${LINUX_VER}" in
add-apt-repository -r ppa:git-core/ppa
add-apt-repository -r ppa:ubuntu-toolchain-r/test
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 90 --slave /usr/bin/g++ g++ /usr/bin/g++-9 --slave /usr/bin/gcov gcov /usr/bin/gcov-9
rm -rf /var/cache/apt/archives /var/lib/apt/lists/*
rm -rf \
/var/cache/apt/archives \
/var/lib/apt/lists/*
;;
"rockylinux"*)
dnf update -y
dnf install -y epel-release
dnf install --nodocs -y epel-release
dnf config-manager --set-enabled powertools
dnf update -y
PACKAGES_TO_INSTALL=(
autoconf
automake
blas-devel
bzip2
bzip2-devel
ca-certificates
cmake
curl
dnf-plugins-core
gcc
gcc-toolset-14-gcc
gcc-toolset-14-gcc-c++
git
jq
lapack-devel
libcudnn8-devel
libcurl-devel
libffi-devel
Expand All @@ -156,6 +160,7 @@ case "${LINUX_VER}" in
which
xz
xz-devel
yasm
zip
zlib-devel
)
Expand All @@ -168,13 +173,9 @@ case "${LINUX_VER}" in
echo "libnccl-devel already installed"
fi

dnf install -y \
dnf install --nodocs -y \
"${PACKAGES_TO_INSTALL[@]}"
update-ca-trust extract
dnf config-manager --set-enabled powertools
dnf install -y blas-devel lapack-devel
dnf -y install gcc-toolset-14-gcc gcc-toolset-14-gcc-c++
dnf -y install yasm
dnf clean all
echo -e ' \
#!/bin/bash\n \
Expand All @@ -188,12 +189,19 @@ case "${LINUX_VER}" in
make
make install
popd
rm -rf /tmp/openssl*
;;
*)
echo "Unsupported LINUX_VER: ${LINUX_VER}"
exit 1
;;
esac

# clean up docs and other unnecessary stuff
rm -rf \
/usr/share/doc \
/usr/share/info \
/usr/share/man
EOF

# Set AUDITWHEEL_* env vars for use with auditwheel
Expand All @@ -218,9 +226,7 @@ case "${LINUX_VER}" in
exit 1
;;
esac
EOF

RUN <<EOF
pyenv global ${PYTHON_VER}
# `rapids-pip-retry` defaults to using `python -m pip` to select which `pip` to
# use so should be compatible with `pyenv`
Expand All @@ -244,14 +250,12 @@ rapids-pip-retry install \
"${PACKAGES_TO_INSTALL[@]}"
pip cache purge
pyenv rehash
EOF

RUN <<EOF
# Create output directory for wheel builds
mkdir -p ${RAPIDS_WHEEL_BLD_OUTPUT_DIR}

# Mark all directories as safe for git so that GHA clones into the root don't
# run into issues
# Allow git to clone anywhere (these are images for isolated, short-lived CI containers,
# don't need to worry about this setting intended for long-lived / shared servers)
git config --system --add safe.directory '*'
EOF

Expand Down
9 changes: 4 additions & 5 deletions citestwheel.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,7 @@ REAL_ARCH=${REAL_ARCH} \
--aws-cli \
--gh-cli \
--gha-tools
EOF

RUN <<EOF
set -e
case "${LINUX_VER}" in
"ubuntu"*)
Expand Down Expand Up @@ -170,10 +168,11 @@ rapids-pip-retry install \
'certifi>=2026.1.4' \
'rapids-dependency-file-generator==1.*'
pyenv rehash
EOF

# git safe directory
RUN git config --system --add safe.directory '*'
# Allow git to clone anywhere (these are images for isolated, short-lived CI containers,
# don't need to worry about this setting intended for long-lived / shared servers)
git config --system --add safe.directory '*'
EOF

# Add pip.conf
COPY pip.conf /etc/xdg/pip/pip.conf
Expand Down
11 changes: 9 additions & 2 deletions context/scripts/install-tools
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ if [[ "${#PACKAGES_TO_INSTALL[@]}" != "0" ]]; then
"${PACKAGES_TO_INSTALL[@]}"
else
dnf update -y
dnf install -y \
dnf install --nodocs -y \
"${PACKAGES_TO_INSTALL[@]}"
fi
fi
Expand Down Expand Up @@ -121,10 +121,17 @@ if [[ "${#PACKAGES_TO_INSTALL[@]}" != "0" ]]; then
apt-get purge -y \
"${PACKAGE_TO_INSTALL[@]}"
apt-get autoremove -y
rm -rf /var/lib/apt/lists/*
rm -rf \
/var/cache/apt/archives \
/var/lib/apt/lists/*
else
dnf remove -y \
"${PACKAGES_TO_INSTALL[@]}"
dnf clean all
fi
# either way, clean up docs and other unnecessary stuff
rm -rf \
/usr/share/doc \
/usr/share/info \
/usr/share/man
fi