Skip to content

Commit

Permalink
Add Rocky Linux 8 citestwheel images. (#177)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdice authored Aug 29, 2024
1 parent e97514d commit f5a15f2
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 18 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,11 @@ export LINUX_VER=ubuntu22.04
export CUDA_VER=12.2.2
export PYTHON_VER=3.11
export ARCH=amd64
export IMAGE_REPO=ci-conda
docker build $(ci/compute-build-args.sh) -f ci-conda.Dockerfile context/
export IMAGE_REPO=ci-wheel
docker build $(ci/compute-build-args.sh) -f ci-wheel.Dockerfile context/
export IMAGE_REPO=citestwheel
docker build $(ci/compute-build-args.sh) -f citestwheel.Dockerfile context/
```

Expand Down
55 changes: 41 additions & 14 deletions citestwheel.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ FROM amazon/aws-cli:${AWS_CLI_VER} AS aws-cli
FROM ${BASE_IMAGE}

ARG CUDA_VER=notset
ARG LINUX_VER=notset
ARG PYTHON_VER=notset

# Set RAPIDS versions env variables
Expand All @@ -24,20 +25,46 @@ SHELL ["/bin/bash", "-euo", "pipefail", "-c"]

RUN <<EOF
set -e
echo 'APT::Update::Error-Mode "any";' > /etc/apt/apt.conf.d/warnings-as-errors
apt-get update
apt-get install -y software-properties-common
# update git > 2.17
add-apt-repository ppa:git-core/ppa -y
apt-get update
apt-get upgrade -y
apt-get install -y --no-install-recommends \
wget curl git jq ssh \
make build-essential libssl-dev zlib1g-dev \
libbz2-dev libreadline-dev libsqlite3-dev wget \
curl llvm libncursesw5-dev xz-utils tk-dev unzip \
libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev
rm -rf /var/cache/apt/archives /var/lib/apt/lists/*
case "${LINUX_VER}" in
"ubuntu"*)
echo 'APT::Update::Error-Mode "any";' > /etc/apt/apt.conf.d/warnings-as-errors
apt-get update
apt-get install -y software-properties-common
# update git > 2.17
add-apt-repository ppa:git-core/ppa -y
apt-get update
apt-get upgrade -y
apt-get install -y --no-install-recommends \
wget curl git jq ssh \
make build-essential libssl-dev zlib1g-dev \
libbz2-dev libreadline-dev libsqlite3-dev wget \
curl llvm libncursesw5-dev xz-utils tk-dev unzip \
libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev
rm -rf /var/cache/apt/archives /var/lib/apt/lists/*
;;
"rockylinux"*)
dnf update -y
dnf install -y epel-release
dnf update -y
dnf install -y \
which wget gcc zlib-devel bzip2 bzip2-devel readline-devel sqlite \
sqlite-devel xz xz-devel libffi-devel curl git ncurses-devel \
jq dnf-plugins-core
dnf clean all
pushd tmp
wget https://www.openssl.org/source/openssl-1.1.1k.tar.gz
tar -xzvf openssl-1.1.1k.tar.gz
cd openssl-1.1.1k
./config --prefix=/usr --openssldir=/etc/ssl --libdir=lib no-shared zlib-dynamic
make
make install
popd
;;
*)
echo "Unsupported LINUX_VER: ${LINUX_VER}"
exit 1
;;
esac
EOF

# Install pyenv
Expand Down
4 changes: 0 additions & 4 deletions matrix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,6 @@ exclude:
- CUDA_VER: "11.4.3"
IMAGE_REPO: "ci-wheel"

# exclude citestwheel for rockylinux8
- LINUX_VER: "rockylinux8"
IMAGE_REPO: "citestwheel"

# exclude ci-wheel for ubuntu22.04
- LINUX_VER: "ubuntu22.04"
IMAGE_REPO: "ci-wheel"

0 comments on commit f5a15f2

Please sign in to comment.