Skip to content

Commit

Permalink
fixup! dbld: add almalinux-9 as distro
Browse files Browse the repository at this point in the history
  • Loading branch information
MrAnno committed May 24, 2024
1 parent 78e0733 commit 091c261
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dbld/builddeps
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,13 @@ function add_copr_repo {
# install a couple of Python dependencies which then conflict with our
# PIP installation later.
case "${OS_DISTRIBUTION}" in
centos|almalinux)
centos|almalinux-8)
$YUM_INSTALL yum-plugin-copr
yum config-manager --set-enabled powertools
;;
almalinux-9)
dnf config-manager --set-enabled crb
;;
fedora)
$DNF_INSTALL -y dnf-plugins-core
;;
Expand Down
25 changes: 25 additions & 0 deletions dbld/images/almalinux-9.dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
FROM almalinux:9
LABEL maintainer="Laszlo Varady <laszlo.varady@axoflow.com>, Balazs Scheidler <balazs.scheidler@axoflow.com>"
ENV OS_DISTRIBUTION=almalinux
ENV OS_DISTRIBUTION_CODE_NAME=9

ARG ARG_IMAGE_PLATFORM
ARG COMMIT
ENV IMAGE_PLATFORM ${ARG_IMAGE_PLATFORM}
LABEL COMMIT=${COMMIT}

COPY images/entrypoint.sh /
COPY . /dbld/

RUN /dbld/builddeps install_dbld_dependencies
RUN /dbld/builddeps add_epel_repo
RUN /dbld/builddeps add_copr_repo
RUN /dbld/builddeps install_yum_packages
RUN /dbld/builddeps install_rpm_build_deps

RUN /dbld/builddeps install_criterion

VOLUME /source
VOLUME /build

ENTRYPOINT ["/entrypoint.sh"]
1 change: 1 addition & 0 deletions dbld/rules
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

BUILDER_IMAGES= \
almalinux-8 \
almalinux-9 \
fedora-39 \
debian-stretch \
debian-bullseye \
Expand Down

0 comments on commit 091c261

Please sign in to comment.