Skip to content

Commit

Permalink
dbld: add almalinux-9 as distro
Browse files Browse the repository at this point in the history
Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
  • Loading branch information
bazsi committed May 24, 2024
1 parent 9d9f179 commit ddbc2c2
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/create-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ on:
"ubuntu-lunar",
"ubuntu-mantic",
"almalinux-8",
"almalinux-9",
"fedora-39"
]'

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/dbld-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
strategy:
matrix:
image:
- almalinux-9
- almalinux-8
- fedora-39
- debian-bullseye
Expand Down
1 change: 1 addition & 0 deletions dbld/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ EXTRA_DIST += \
dbld/images/centos.prepare.sh \
dbld/images/fedora.prepare.sh \
dbld/images/almalinux-8.dockerfile \
dbld/images/almalinux-9.dockerfile \
dbld/images/devshell.dockerfile \
dbld/images/fedora-39.dockerfile \
dbld/images/debian-bullseye.dockerfile \
Expand Down
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 <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
2 changes: 2 additions & 0 deletions packaging/rhel/axosyslog.spec
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ BuildRequires: glib2-devel
BuildRequires: ivykis-devel
BuildRequires: json-c-devel
BuildRequires: libcap-devel
%if 0%{?rhel} <= 8
BuildRequires: libdbi-devel
%endif
BuildRequires: libnet-devel
BuildRequires: openssl-devel
BuildRequires: pcre2-devel
Expand Down

0 comments on commit ddbc2c2

Please sign in to comment.