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 4822aa2
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 2 deletions.
11 changes: 9 additions & 2 deletions dbld/builddeps
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,15 @@ function add_copr_repo {
# PIP installation later.
case "${OS_DISTRIBUTION}" in
centos|almalinux)
$YUM_INSTALL yum-plugin-copr
yum config-manager --set-enabled powertools
case "${OS_DISTRIBUTION_CODE_NAME}" in
8)
$YUM_INSTALL yum-plugin-copr
yum config-manager --set-enabled powertools
;;
9)
dnf config-manager --set-enabled crb
;;
esac
;;
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 <[email protected]>, Balazs Scheidler <[email protected]>"
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 4822aa2

Please sign in to comment.