Skip to content

Commit

Permalink
ci: add Rocky Linux 9.4
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Colberg <[email protected]>
  • Loading branch information
pcolberg committed Dec 5, 2024
1 parent 6d971f4 commit 25a82ef
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build-rpms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
RPM:
strategy:
matrix:
distro: [fedora39, fedora40, rockylinux8]
distro: [fedora39, fedora40, rockylinux8, rockylinux9]
runs-on: ubuntu-latest
name: Build ${{ matrix.distro }}
steps:
Expand Down
32 changes: 32 additions & 0 deletions docker/rockylinux9/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
ARG tag=9.4
# Pull non-official image to retrieve archived versions that were
# removed from the official library, such as rockylinux:8.4.
# https://forums.rockylinux.org/t/rockylinux-8-4-not-in-official-rockylinux-docker-images-tag-list/5248
FROM rockylinux/rockylinux:${tag}
# https://docs.docker.com/engine/reference/builder/#understand-how-arg-and-from-interact
ARG tag
# When ${tag} is explicitly given as a minor version, e.g., 9.4,
# install packages from the vault repositories instead of the default
# mirrors. Otherwise, packages will be upgraded or installed from the
# specified to the latest minor release, e.g., 9.4 is upgraded to 9.5.
RUN sed -i -e '/^mirrorlist/s,^,#,' -e "s,^#\\?\\(baseurl=http://dl.rockylinux.org\\)/\$contentdir/\$releasever/,\\1/vault/rocky/${tag}/," /etc/yum.repos.d/rocky*.repo
RUN dnf install -y 'dnf-command(config-manager)'
RUN dnf config-manager --set-enabled crb
RUN dnf install -y epel-release
RUN dnf check-update || true
RUN dnf upgrade -y
RUN dnf install -y python3 python3-pip python3-devel python3-jsonschema python3-pyyaml gdb vim git gcc gcc-c++ make cmake libuuid-devel json-c-devel hwloc-devel tbb-devel cli11-devel spdlog-devel libedit-devel systemd-devel doxygen python3-sphinx pandoc rpm-build rpmdevtools python3-virtualenv yaml-cpp-devel libudev-devel libcap-devel sudo numactl-devel

RUN python3 -m pip install --user jsonschema virtualenv pudb pyyaml pybind11 && \
# setuptools < ~51.x will fail to process the pyproject.toml successfully, so we upgrade
# /usr is required to target the correct Python installation, as it has been found to fail when only affecting /usr/local
/usr/bin/python3 -m pip install setuptools --upgrade --prefix /usr && \
# the pip version has to be at least 10.0.0b1 for the build scripts to run, however the pip installed through dnf is only version 9
# similar to setuptools, it has been found to fail when only affecting /usr/local
/usr/bin/python3 -m pip install --upgrade pip --prefix=/usr

WORKDIR /root

COPY scripts/test-rpms.sh /scripts/test-rpms.sh

ENTRYPOINT ["/opae-rockylinux9/opae-sdk/packaging/opae/rpm/create", "unrestricted"]

0 comments on commit 25a82ef

Please sign in to comment.