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 Jun 1, 2024
1 parent 5e855ae commit e7b0205
Show file tree
Hide file tree
Showing 9 changed files with 43 additions and 3 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",
"fedora-40"
]'
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
- fedora-40
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:
dbld-image-mode: cache
distros: '[
"almalinux-8",
"almalinux-9",
"debian-bookworm",
"debian-testing",
"fedora-40",
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/fedora-40.dockerfile \
Expand Down
3 changes: 2 additions & 1 deletion dbld/build.manifest
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,5 @@ ubuntu-lunar python3
ubuntu-mantic python3

fedora python3
almalinux python3,noriemann,nokafka,nomqtt,nojava
almalinux-8 python3,noriemann,nokafka,nomqtt,nojava
almalinux-9 python3,nojava,nosql
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 \
fedora-40 \
debian-stretch \
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 e7b0205

Please sign in to comment.