Updated RHEL from 9 to 10

This commit is contained in:
Alexey Pustovalov
2025-05-16 01:08:31 +09:00
parent 200d49489d
commit 212f9019ba
15 changed files with 200 additions and 223 deletions

2
.env
View File

@ -82,7 +82,7 @@ ALPINE_BASE_IMAGE=alpine:3.21
CENTOS_BASE_IMAGE=quay.io/centos/centos:stream9-minimal CENTOS_BASE_IMAGE=quay.io/centos/centos:stream9-minimal
OL_BASE_IMAGE=oraclelinux:9-slim OL_BASE_IMAGE=oraclelinux:9-slim
UBUNTU_BASE_IMAGE=ubuntu:noble UBUNTU_BASE_IMAGE=ubuntu:noble
RHEL_BASE_IMAGE=registry.access.redhat.com/ubi9/ubi-minimal:9.5 RHEL_BASE_IMAGE=registry.access.redhat.com/ubi10/ubi-minimal:10.0
# Base images # Base images
BUILD_BASE_IMAGE=zabbix-build-base BUILD_BASE_IMAGE=zabbix-build-base

View File

@ -1,5 +1,5 @@
# syntax=docker/dockerfile:1 # syntax=docker/dockerfile:1
ARG OS_BASE_IMAGE=registry.access.redhat.com/ubi9/ubi-minimal:9.5 ARG OS_BASE_IMAGE=registry.access.redhat.com/ubi10/ubi-minimal:10.0
ARG MAJOR_VERSION=7.4 ARG MAJOR_VERSION=7.4
ARG RELEASE=0 ARG RELEASE=0
ARG ZBX_VERSION=${MAJOR_VERSION} ARG ZBX_VERSION=${MAJOR_VERSION}
@ -62,16 +62,17 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
iputils \ iputils \
shadow-utils \ shadow-utils \
pcre2 \ pcre2 \
libmodbus \ # libmodbus \
libcurl-minimal \ libcurl-minimal \
openldap-compat \
zlib" && \ zlib" && \
curl --tlsv1.2 -sSf -L https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm -o /tmp/epel-release-latest-9.noarch.rpm && \ curl --tlsv1.2 -sSf -L https://dl.fedoraproject.org/pub/epel/epel-release-latest-10.noarch.rpm -o /tmp/epel-release-latest-10.noarch.rpm && \
rpm -ivh /tmp/epel-release-latest-9.noarch.rpm && \ rpm -ivh /tmp/epel-release-latest-10.noarch.rpm && \
rm -rf /tmp/epel-release-latest-9.noarch.rpm && \ rm -rf /tmp/epel-release-latest-10.noarch.rpm && \
microdnf -y install \ microdnf -y install \
--disableplugin=subscription-manager \ --disableplugin=subscription-manager \
--disablerepo "*" \ --disablerepo "*" \
--enablerepo "ubi-9-baseos-rpms" \ --enablerepo "ubi-10-baseos-rpms" \
--enablerepo "epel" \ --enablerepo "epel" \
--setopt=install_weak_deps=0 \ --setopt=install_weak_deps=0 \
--setopt=keepcache=0 \ --setopt=keepcache=0 \
@ -81,20 +82,20 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
microdnf -y update \ microdnf -y update \
--disableplugin=subscription-manager \ --disableplugin=subscription-manager \
--disablerepo "*" \ --disablerepo "*" \
--enablerepo "ubi-9-baseos-rpms" \ --enablerepo "ubi-10-baseos-rpms" \
--setopt=install_weak_deps=0 \ --setopt=install_weak_deps=0 \
--best \ --best \
--setopt=tsflags=nodocs \ --setopt=tsflags=nodocs \
tzdata && \ tzdata && \
microdnf -y reinstall \ # microdnf -y reinstall \
--disableplugin=subscription-manager \ # --disableplugin=subscription-manager \
--disablerepo "*" \ # --disablerepo "*" \
--enablerepo "ubi-9-baseos-rpms" \ # --enablerepo "ubi-10-baseos-rpms" \
--setopt=install_weak_deps=0 \ # --setopt=install_weak_deps=0 \
--setopt=keepcache=0 \ # --setopt=keepcache=0 \
--best \ # --best \
--setopt=tsflags=nodocs \ # --setopt=tsflags=nodocs \
tzdata && \ # tzdata && \
groupadd \ groupadd \
--system \ --system \
--gid 1995 \ --gid 1995 \

View File

@ -1,5 +1,5 @@
# syntax=docker/dockerfile:1 # syntax=docker/dockerfile:1
ARG OS_BASE_IMAGE=registry.access.redhat.com/ubi9/ubi-minimal:9.5 ARG OS_BASE_IMAGE=registry.access.redhat.com/ubi10/ubi-minimal:10.0
ARG MAJOR_VERSION=7.4 ARG MAJOR_VERSION=7.4
ARG RELEASE=0 ARG RELEASE=0
ARG ZBX_VERSION=${MAJOR_VERSION} ARG ZBX_VERSION=${MAJOR_VERSION}
@ -62,13 +62,13 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
iputils \ iputils \
shadow-utils \ shadow-utils \
pcre2 \ pcre2 \
smartmontools \ # smartmontools \
sudo \ sudo \
libcurl-minimal" && \ libcurl-minimal" && \
microdnf -y install \ microdnf -y install \
--disableplugin=subscription-manager \ --disableplugin=subscription-manager \
--disablerepo "*" \ --disablerepo "*" \
--enablerepo "ubi-9-baseos-rpms" \ --enablerepo "ubi-10-baseos-rpms" \
--setopt=install_weak_deps=0 \ --setopt=install_weak_deps=0 \
--setopt=keepcache=0 \ --setopt=keepcache=0 \
--best \ --best \
@ -77,20 +77,20 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
microdnf -y update \ microdnf -y update \
--disableplugin=subscription-manager \ --disableplugin=subscription-manager \
--disablerepo "*" \ --disablerepo "*" \
--enablerepo "ubi-9-baseos-rpms" \ --enablerepo "ubi-10-baseos-rpms" \
--setopt=install_weak_deps=0 \ --setopt=install_weak_deps=0 \
--best \ --best \
--setopt=tsflags=nodocs \ --setopt=tsflags=nodocs \
tzdata && \ tzdata && \
microdnf -y reinstall \ # microdnf -y reinstall \
--disableplugin=subscription-manager \ # --disableplugin=subscription-manager \
--disablerepo "*" \ # --disablerepo "*" \
--enablerepo "ubi-9-baseos-rpms" \ # --enablerepo "ubi-9-baseos-rpms" \
--setopt=install_weak_deps=0 \ # --setopt=install_weak_deps=0 \
--setopt=keepcache=0 \ # --setopt=keepcache=0 \
--best \ # --best \
--setopt=tsflags=nodocs \ # --setopt=tsflags=nodocs \
tzdata && \ # tzdata && \
groupadd \ groupadd \
--system \ --system \
--gid 1995 \ --gid 1995 \

View File

@ -1,5 +1,5 @@
# syntax=docker/dockerfile:1 # syntax=docker/dockerfile:1
ARG OS_BASE_IMAGE=registry.access.redhat.com/ubi9/ubi-minimal:9.5 ARG OS_BASE_IMAGE=registry.access.redhat.com/ubi10/ubi-minimal:10.0
FROM ${OS_BASE_IMAGE} FROM ${OS_BASE_IMAGE}
ARG MAJOR_VERSION=7.4 ARG MAJOR_VERSION=7.4
@ -45,40 +45,34 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
libcurl-devel \ libcurl-devel \
libevent-devel \ libevent-devel \
libssh-devel \ libssh-devel \
libmodbus-devel \ # libmodbus-devel \
libxml2-devel \ libxml2-devel \
openssl-devel \ openssl-devel \
openldap-devel \ openldap-devel \
make \ make \
mysql-devel \ mysql8.4-devel \
net-snmp-devel \ net-snmp-devel \
OpenIPMI-devel \ OpenIPMI-devel \
openldap-devel \ openldap-devel \
sqlite-devel \ sqlite-devel \
postgresql-private-devel \ postgresql-private-devel \
postgresql-server-devel \ postgresql-server-devel \
java-17-openjdk-devel \ java-21-openjdk-devel \
git \ git \
gettext \ gettext \
unixODBC-devel \ unixODBC-devel \
zlib-devel" && \ zlib-devel" && \
curl --tlsv1.2 -sSf -L https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm -o /tmp/epel-release-latest-9.noarch.rpm && \ curl --tlsv1.2 -sSf -L https://dl.fedoraproject.org/pub/epel/epel-release-latest-10.noarch.rpm -o /tmp/epel-release-latest-10.noarch.rpm && \
rpm -ivh /tmp/epel-release-latest-9.noarch.rpm && \ rpm -ivh /tmp/epel-release-latest-10.noarch.rpm && \
rm -rf /tmp/epel-release-latest-9.noarch.rpm && \ rm -rf /tmp/epel-release-latest-10.noarch.rpm && \
ARCH_SUFFIX="$(arch)"; \ ARCH_SUFFIX="$(arch)"; \
microdnf -y module enable \
--disablerepo "*" \
--enablerepo "rhel-9-for-$ARCH_SUFFIX-appstream-rpms" \
--setopt=install_weak_deps=0 \
--setopt=keepcache=0 \
postgresql:16 && \
microdnf -y install \ microdnf -y install \
--disablerepo "*" \ --disablerepo "*" \
--enablerepo "ubi-9-baseos-rpms" \ --enablerepo "ubi-10-baseos-rpms" \
--enablerepo "ubi-9-appstream-rpms" \ --enablerepo "ubi-10-appstream-rpms" \
--enablerepo "rhel-9-for-$ARCH_SUFFIX-baseos-rpms" \ --enablerepo "rhel-10-for-$ARCH_SUFFIX-baseos-rpms" \
--enablerepo "rhel-9-for-$ARCH_SUFFIX-appstream-rpms" \ --enablerepo "rhel-10-for-$ARCH_SUFFIX-appstream-rpms" \
--enablerepo "codeready-builder-for-rhel-9-$ARCH_SUFFIX-rpms" \ --enablerepo "codeready-builder-for-rhel-10-$ARCH_SUFFIX-rpms" \
--enablerepo "epel" \ --enablerepo "epel" \
--setopt=install_weak_deps=0 \ --setopt=install_weak_deps=0 \
--setopt=keepcache=0 \ --setopt=keepcache=0 \

View File

@ -45,9 +45,9 @@ ENV ZBX_SOURCES_DIR=/tmp/zabbix-${ZBX_VERSION} ZBX_OUTPUT_DIR=/tmp/zabbix-${ZBX_
RUN --mount=type=cache,target=/root/.cache/go-build/ \ RUN --mount=type=cache,target=/root/.cache/go-build/ \
--mount=type=cache,target=/root/go/ \ --mount=type=cache,target=/root/go/ \
--mount=from=sources,target=/tmp/src \ --mount=from=sources,target=/tmp/src,z \
--mount=type=bind,source=patches/,target=/tmp/patches \ --mount=type=bind,source=patches/,target=/tmp/patches,z \
--mount=from=config_templates,target=/tmp/conf \ --mount=from=config_templates,target=/tmp/conf,z \
set -eux && \ set -eux && \
cd /tmp/ && \ cd /tmp/ && \
mkdir -p ${ZBX_OUTPUT_DIR}/agent/sbin/ && \ mkdir -p ${ZBX_OUTPUT_DIR}/agent/sbin/ && \
@ -97,7 +97,7 @@ RUN --mount=type=cache,target=/root/.cache/go-build/ \
--enable-webservice \ --enable-webservice \
--with-ldap \ --with-ldap \
--with-libcurl \ --with-libcurl \
--with-libmodbus \ # --with-libmodbus \
--with-libpcre2 \ --with-libpcre2 \
--with-libxml2 \ --with-libxml2 \
--with-${DB_TYPE} \ --with-${DB_TYPE} \

View File

@ -45,9 +45,9 @@ ENV ZBX_SOURCES_DIR=/tmp/zabbix-${ZBX_VERSION} ZBX_OUTPUT_DIR=/tmp/zabbix-${ZBX_
RUN --mount=type=cache,target=/root/.cache/go-build/ \ RUN --mount=type=cache,target=/root/.cache/go-build/ \
--mount=type=cache,target=/root/go/ \ --mount=type=cache,target=/root/go/ \
--mount=from=sources,target=/tmp/src \ --mount=from=sources,target=/tmp/src,z \
--mount=type=bind,source=patches/,target=/tmp/patches \ --mount=type=bind,source=patches/,target=/tmp/patches,z \
--mount=from=config_templates,target=/tmp/conf \ --mount=from=config_templates,target=/tmp/conf,z \
set -eux && \ set -eux && \
cd /tmp/ && \ cd /tmp/ && \
mkdir -p ${ZBX_OUTPUT_DIR}/agent/sbin/ && \ mkdir -p ${ZBX_OUTPUT_DIR}/agent/sbin/ && \
@ -99,7 +99,7 @@ RUN --mount=type=cache,target=/root/.cache/go-build/ \
--enable-webservice \ --enable-webservice \
--with-ldap \ --with-ldap \
--with-libcurl \ --with-libcurl \
--with-libmodbus \ # --with-libmodbus \
--with-libpcre2 \ --with-libpcre2 \
--with-libxml2 \ --with-libxml2 \
--with-${DB_TYPE} \ --with-${DB_TYPE} \

View File

@ -1,5 +1,5 @@
# syntax=docker/dockerfile:1 # syntax=docker/dockerfile:1
ARG OS_BASE_IMAGE=registry.access.redhat.com/ubi9/ubi-minimal:9.5 ARG OS_BASE_IMAGE=registry.access.redhat.com/ubi10/ubi-minimal:10.0
ARG MAJOR_VERSION=7.4 ARG MAJOR_VERSION=7.4
ARG RELEASE=0 ARG RELEASE=0
ARG ZBX_VERSION=${MAJOR_VERSION} ARG ZBX_VERSION=${MAJOR_VERSION}
@ -56,12 +56,12 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
INSTALL_PKGS="bash \ INSTALL_PKGS="bash \
findutils \ findutils \
shadow-utils \ shadow-utils \
java-17-openjdk-headless" && \ java-21-openjdk-headless" && \
microdnf -y install \ microdnf -y install \
--disableplugin=subscription-manager \ --disableplugin=subscription-manager \
--disablerepo "*" \ --disablerepo "*" \
--enablerepo "ubi-9-baseos-rpms" \ --enablerepo "ubi-10-baseos-rpms" \
--enablerepo "ubi-9-appstream-rpms" \ --enablerepo "ubi-10-appstream-rpms" \
--setopt=install_weak_deps=0 \ --setopt=install_weak_deps=0 \
--setopt=keepcache=0 \ --setopt=keepcache=0 \
--best \ --best \

View File

@ -1,5 +1,5 @@
# syntax=docker/dockerfile:1 # syntax=docker/dockerfile:1
ARG OS_BASE_IMAGE=registry.access.redhat.com/ubi9/ubi-minimal:9.5 ARG OS_BASE_IMAGE=registry.access.redhat.com/ubi10/ubi-minimal:10.0
ARG MAJOR_VERSION=7.4 ARG MAJOR_VERSION=7.4
ARG RELEASE=0 ARG RELEASE=0
ARG ZBX_VERSION=${MAJOR_VERSION} ARG ZBX_VERSION=${MAJOR_VERSION}
@ -80,25 +80,25 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
openssl \ openssl \
libssh \ libssh \
libxml2 \ libxml2 \
mysql \ mysql8.4 \
mysql-libs \ mysql8.4-libs \
net-snmp-agent-libs \ net-snmp-agent-libs \
OpenIPMI-libs \ OpenIPMI-libs \
pcre2 \ pcre2 \
gzip \ gzip \
unixODBC \ unixODBC \
zlib" && \ zlib" && \
curl --tlsv1.2 -sSf -L https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm -o /tmp/epel-release-latest-9.noarch.rpm && \ curl --tlsv1.2 -sSf -L https://dl.fedoraproject.org/pub/epel/epel-release-latest-10.noarch.rpm -o /tmp/epel-release-latest-10.noarch.rpm && \
rpm -ivh /tmp/epel-release-latest-9.noarch.rpm && \ rpm -ivh /tmp/epel-release-latest-10.noarch.rpm && \
rm -rf /tmp/epel-release-latest-9.noarch.rpm && \ rm -rf /tmp/epel-release-latest-10.noarch.rpm && \
ARCH_SUFFIX="$(arch)"; \ ARCH_SUFFIX="$(arch)"; \
microdnf -y install \ microdnf -y install \
--disablerepo "*" \ --disablerepo "*" \
--enablerepo "ubi-9-baseos-rpms" \ --enablerepo "ubi-10-baseos-rpms" \
--enablerepo "ubi-9-appstream-rpms" \ --enablerepo "ubi-10-appstream-rpms" \
--enablerepo "rhel-9-for-$ARCH_SUFFIX-baseos-rpms" \ --enablerepo "rhel-10-for-$ARCH_SUFFIX-baseos-rpms" \
--enablerepo "rhel-9-for-$ARCH_SUFFIX-appstream-rpms" \ --enablerepo "rhel-10-for-$ARCH_SUFFIX-appstream-rpms" \
--enablerepo "codeready-builder-for-rhel-9-$ARCH_SUFFIX-rpms" \ --enablerepo "codeready-builder-for-rhel-10-$ARCH_SUFFIX-rpms" \
--enablerepo "epel" \ --enablerepo "epel" \
--setopt=install_weak_deps=0 \ --setopt=install_weak_deps=0 \
--setopt=keepcache=0 \ --setopt=keepcache=0 \
@ -108,19 +108,19 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
microdnf -y update \ microdnf -y update \
--disableplugin=subscription-manager \ --disableplugin=subscription-manager \
--disablerepo "*" \ --disablerepo "*" \
--enablerepo "ubi-9-baseos-rpms" \ --enablerepo "ubi-10-baseos-rpms" \
--setopt=install_weak_deps=0 \
--best \
--setopt=tsflags=nodocs \
tzdata && \
microdnf -y reinstall \
--disableplugin=subscription-manager \
--disablerepo "*" \
--enablerepo "ubi-9-baseos-rpms" \
--setopt=install_weak_deps=0 \ --setopt=install_weak_deps=0 \
--best \ --best \
--setopt=tsflags=nodocs \ --setopt=tsflags=nodocs \
tzdata && \ tzdata && \
# microdnf -y reinstall \
# --disableplugin=subscription-manager \
# --disablerepo "*" \
# --enablerepo "ubi-9-baseos-rpms" \
# --setopt=install_weak_deps=0 \
# --best \
# --setopt=tsflags=nodocs \
# tzdata && \
groupadd \ groupadd \
--system \ --system \
--gid 1995 \ --gid 1995 \

View File

@ -1,5 +1,5 @@
# syntax=docker/dockerfile:1 # syntax=docker/dockerfile:1
ARG OS_BASE_IMAGE=registry.access.redhat.com/ubi9/ubi-minimal:9.5 ARG OS_BASE_IMAGE=registry.access.redhat.com/ubi10/ubi-minimal:10.0
ARG MAJOR_VERSION=7.4 ARG MAJOR_VERSION=7.4
ARG RELEASE=0 ARG RELEASE=0
ARG ZBX_VERSION=${MAJOR_VERSION} ARG ZBX_VERSION=${MAJOR_VERSION}
@ -84,16 +84,16 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
sqlite-libs \ sqlite-libs \
unixODBC \ unixODBC \
zlib" && \ zlib" && \
curl --tlsv1.2 -sSf -L https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm -o /tmp/epel-release-latest-9.noarch.rpm && \ curl --tlsv1.2 -sSf -L https://dl.fedoraproject.org/pub/epel/epel-release-latest-10.noarch.rpm -o /tmp/epel-release-latest-10.noarch.rpm && \
rpm -ivh /tmp/epel-release-latest-9.noarch.rpm && \ rpm -ivh /tmp/epel-release-latest-10.noarch.rpm && \
rm -rf /tmp/epel-release-latest-9.noarch.rpm && \ rm -rf /tmp/epel-release-latest-10.noarch.rpm && \
ARCH_SUFFIX="$(arch)"; \ ARCH_SUFFIX="$(arch)"; \
microdnf -y install \ microdnf -y install \
--disablerepo "*" \ --disablerepo "*" \
--enablerepo "ubi-9-baseos-rpms" \ --enablerepo "ubi-10-baseos-rpms" \
--enablerepo "ubi-9-appstream-rpms" \ --enablerepo "ubi-10-appstream-rpms" \
--enablerepo "rhel-9-for-$ARCH_SUFFIX-baseos-rpms" \ --enablerepo "rhel-10-for-$ARCH_SUFFIX-baseos-rpms" \
--enablerepo "rhel-9-for-$ARCH_SUFFIX-appstream-rpms" \ --enablerepo "rhel-10-for-$ARCH_SUFFIX-appstream-rpms" \
--enablerepo "epel" \ --enablerepo "epel" \
--setopt=install_weak_deps=0 \ --setopt=install_weak_deps=0 \
--setopt=keepcache=0 \ --setopt=keepcache=0 \
@ -103,20 +103,20 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
microdnf -y update \ microdnf -y update \
--disableplugin=subscription-manager \ --disableplugin=subscription-manager \
--disablerepo "*" \ --disablerepo "*" \
--enablerepo "ubi-9-baseos-rpms" \ --enablerepo "ubi-10-baseos-rpms" \
--setopt=install_weak_deps=0 \ --setopt=install_weak_deps=0 \
--best \ --best \
--setopt=tsflags=nodocs \ --setopt=tsflags=nodocs \
tzdata && \ tzdata && \
microdnf -y reinstall \ # microdnf -y reinstall \
--disableplugin=subscription-manager \ # --disableplugin=subscription-manager \
--disablerepo "*" \ # --disablerepo "*" \
--enablerepo "ubi-9-baseos-rpms" \ # --enablerepo "ubi-9-baseos-rpms" \
--setopt=install_weak_deps=0 \ # --setopt=install_weak_deps=0 \
--setopt=keepcache=0 \ # --setopt=keepcache=0 \
--best \ # --best \
--setopt=tsflags=nodocs \ # --setopt=tsflags=nodocs \
tzdata && \ # tzdata && \
groupadd \ groupadd \
--system \ --system \
--gid 1995 \ --gid 1995 \

View File

@ -1,5 +1,5 @@
# syntax=docker/dockerfile:1 # syntax=docker/dockerfile:1
ARG OS_BASE_IMAGE=registry.access.redhat.com/ubi9/ubi-minimal:9.5 ARG OS_BASE_IMAGE=registry.access.redhat.com/ubi10/ubi-minimal:10.0
ARG MAJOR_VERSION=7.4 ARG MAJOR_VERSION=7.4
ARG RELEASE=0 ARG RELEASE=0
ARG ZBX_VERSION=${MAJOR_VERSION} ARG ZBX_VERSION=${MAJOR_VERSION}
@ -83,25 +83,25 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
openldap \ openldap \
libssh \ libssh \
libxml2 \ libxml2 \
mysql \ mysql8.4 \
mysql-libs \ mysql8.4-libs \
net-snmp-agent-libs \ net-snmp-agent-libs \
OpenIPMI-libs \ OpenIPMI-libs \
pcre2 \ pcre2 \
gzip \ gzip \
unixODBC \ unixODBC \
zlib" && \ zlib" && \
curl --tlsv1.2 -sSf -L https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm -o /tmp/epel-release-latest-9.noarch.rpm && \ curl --tlsv1.2 -sSf -L https://dl.fedoraproject.org/pub/epel/epel-release-latest-10.noarch.rpm -o /tmp/epel-release-latest-10.noarch.rpm && \
rpm -ivh /tmp/epel-release-latest-9.noarch.rpm && \ rpm -ivh /tmp/epel-release-latest-10.noarch.rpm && \
rm -rf /tmp/epel-release-latest-9.noarch.rpm && \ rm -rf /tmp/epel-release-latest-10.noarch.rpm && \
ARCH_SUFFIX="$(arch)"; \ ARCH_SUFFIX="$(arch)"; \
microdnf -y install \ microdnf -y install \
--disablerepo "*" \ --disablerepo "*" \
--enablerepo "ubi-9-baseos-rpms" \ --enablerepo "ubi-10-baseos-rpms" \
--enablerepo "ubi-9-appstream-rpms" \ --enablerepo "ubi-10-appstream-rpms" \
--enablerepo "rhel-9-for-$ARCH_SUFFIX-baseos-rpms" \ --enablerepo "rhel-10-for-$ARCH_SUFFIX-baseos-rpms" \
--enablerepo "rhel-9-for-$ARCH_SUFFIX-appstream-rpms" \ --enablerepo "rhel-10-for-$ARCH_SUFFIX-appstream-rpms" \
--enablerepo "codeready-builder-for-rhel-9-$ARCH_SUFFIX-rpms" \ --enablerepo "codeready-builder-for-rhel-10-$ARCH_SUFFIX-rpms" \
--enablerepo "epel" \ --enablerepo "epel" \
--setopt=install_weak_deps=0 \ --setopt=install_weak_deps=0 \
--setopt=keepcache=0 \ --setopt=keepcache=0 \
@ -111,22 +111,22 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
microdnf -y update \ microdnf -y update \
--disableplugin=subscription-manager \ --disableplugin=subscription-manager \
--disablerepo "*" \ --disablerepo "*" \
--enablerepo "ubi-9-baseos-rpms" \ --enablerepo "ubi-10-baseos-rpms" \
--setopt=install_weak_deps=0 \ --setopt=install_weak_deps=0 \
--best \ --best \
--setopt=tsflags=nodocs \ --setopt=tsflags=nodocs \
tzdata && \ tzdata && \
microdnf -y reinstall \ # microdnf -y reinstall \
--disableplugin=subscription-manager \ # --disableplugin=subscription-manager \
--disablerepo "*" \ # --disablerepo "*" \
--enablerepo "ubi-9-baseos-rpms" \ # --enablerepo "ubi-9-baseos-rpms" \
--setopt=install_weak_deps=0 \ # --setopt=install_weak_deps=0 \
--setopt=keepcache=0 \ # --setopt=keepcache=0 \
--best \ # --best \
--setopt=tsflags=nodocs \ # --setopt=tsflags=nodocs \
tzdata && \ # tzdata && \
microdnf download libcurl && \ microdnf download libcurl && \
rpm -Uvh --nodeps --replacefiles "*curl*$( uname -i ).rpm" && \ rpm -Uvh --nodeps --replacefiles "*curl*$( uname -m ).rpm" && \
microdnf remove -y libcurl-minimal && \ microdnf remove -y libcurl-minimal && \
rm -rf "*curl*$( uname -i ).rpm" && \ rm -rf "*curl*$( uname -i ).rpm" && \
groupadd \ groupadd \

View File

@ -1,5 +1,5 @@
# syntax=docker/dockerfile:1 # syntax=docker/dockerfile:1
ARG OS_BASE_IMAGE=registry.access.redhat.com/ubi9/ubi-minimal:9.5 ARG OS_BASE_IMAGE=registry.access.redhat.com/ubi10/ubi-minimal:10.0
ARG MAJOR_VERSION=7.4 ARG MAJOR_VERSION=7.4
ARG RELEASE=0 ARG RELEASE=0
ARG ZBX_VERSION=${MAJOR_VERSION} ARG ZBX_VERSION=${MAJOR_VERSION}
@ -91,23 +91,17 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
gzip \ gzip \
unixODBC \ unixODBC \
zlib" && \ zlib" && \
curl --tlsv1.2 -sSf -L https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm -o /tmp/epel-release-latest-9.noarch.rpm && \ curl --tlsv1.2 -sSf -L https://dl.fedoraproject.org/pub/epel/epel-release-latest-10.noarch.rpm -o /tmp/epel-release-latest-10.noarch.rpm && \
rpm -ivh /tmp/epel-release-latest-9.noarch.rpm && \ rpm -ivh /tmp/epel-release-latest-10.noarch.rpm && \
rm -rf /tmp/epel-release-latest-9.noarch.rpm && \ rm -rf /tmp/epel-release-latest-10.noarch.rpm && \
ARCH_SUFFIX="$(arch)"; \ ARCH_SUFFIX="$(arch)"; \
microdnf -y module enable \
--disablerepo "*" \
--enablerepo "rhel-9-for-$ARCH_SUFFIX-appstream-rpms" \
--setopt=install_weak_deps=0 \
--setopt=keepcache=0 \
postgresql:16 && \
microdnf -y install \ microdnf -y install \
--disablerepo "*" \ --disablerepo "*" \
--enablerepo "ubi-9-baseos-rpms" \ --enablerepo "ubi-10-baseos-rpms" \
--enablerepo "ubi-9-appstream-rpms" \ --enablerepo "ubi-10-appstream-rpms" \
--enablerepo "rhel-9-for-$ARCH_SUFFIX-baseos-rpms" \ --enablerepo "rhel-10-for-$ARCH_SUFFIX-baseos-rpms" \
--enablerepo "rhel-9-for-$ARCH_SUFFIX-appstream-rpms" \ --enablerepo "rhel-10-for-$ARCH_SUFFIX-appstream-rpms" \
--enablerepo "codeready-builder-for-rhel-9-$ARCH_SUFFIX-rpms" \ --enablerepo "codeready-builder-for-rhel-10-$ARCH_SUFFIX-rpms" \
--enablerepo "epel" \ --enablerepo "epel" \
--setopt=install_weak_deps=0 \ --setopt=install_weak_deps=0 \
--setopt=keepcache=0 \ --setopt=keepcache=0 \
@ -117,22 +111,22 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
microdnf -y update \ microdnf -y update \
--disableplugin=subscription-manager \ --disableplugin=subscription-manager \
--disablerepo "*" \ --disablerepo "*" \
--enablerepo "ubi-9-baseos-rpms" \ --enablerepo "ubi-10-baseos-rpms" \
--setopt=install_weak_deps=0 \ --setopt=install_weak_deps=0 \
--best \ --best \
--setopt=tsflags=nodocs \ --setopt=tsflags=nodocs \
tzdata && \ tzdata && \
microdnf -y reinstall \ # microdnf -y reinstall \
--disableplugin=subscription-manager \ # --disableplugin=subscription-manager \
--disablerepo "*" \ # --disablerepo "*" \
--enablerepo "ubi-9-baseos-rpms" \ # --enablerepo "ubi-9-baseos-rpms" \
--setopt=install_weak_deps=0 \ # --setopt=install_weak_deps=0 \
--setopt=keepcache=0 \ # --setopt=keepcache=0 \
--best \ # --best \
--setopt=tsflags=nodocs \ # --setopt=tsflags=nodocs \
tzdata && \ # tzdata && \
microdnf download libcurl && \ microdnf download libcurl && \
rpm -Uvh --nodeps --replacefiles "*curl*$( uname -i ).rpm" && \ rpm -Uvh --nodeps --replacefiles "*curl*$( uname -m ).rpm" && \
microdnf remove -y libcurl-minimal && \ microdnf remove -y libcurl-minimal && \
rm -rf "*curl*$( uname -i ).rpm" && \ rm -rf "*curl*$( uname -i ).rpm" && \
groupadd \ groupadd \

View File

@ -1,5 +1,5 @@
# syntax=docker/dockerfile:1 # syntax=docker/dockerfile:1
ARG OS_BASE_IMAGE=registry.access.redhat.com/ubi9/ubi-minimal:9.5 ARG OS_BASE_IMAGE=registry.access.redhat.com/ubi10/ubi-minimal:10.0
FROM ${OS_BASE_IMAGE} FROM ${OS_BASE_IMAGE}
ARG MAJOR_VERSION=7.4 ARG MAJOR_VERSION=7.4
@ -56,8 +56,8 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
microdnf -y install \ microdnf -y install \
--disableplugin=subscription-manager \ --disableplugin=subscription-manager \
--disablerepo="*" \ --disablerepo="*" \
--enablerepo "ubi-9-baseos-rpms" \ --enablerepo "ubi-10-baseos-rpms" \
--enablerepo "ubi-9-appstream-rpms" \ --enablerepo "ubi-10-appstream-rpms" \
--setopt=install_weak_deps=0 \ --setopt=install_weak_deps=0 \
--setopt=keepcache=0 \ --setopt=keepcache=0 \
--best \ --best \
@ -66,20 +66,20 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
microdnf -y update \ microdnf -y update \
--disableplugin=subscription-manager \ --disableplugin=subscription-manager \
--disablerepo "*" \ --disablerepo "*" \
--enablerepo "ubi-9-baseos-rpms" \ --enablerepo "ubi-10-baseos-rpms" \
--setopt=install_weak_deps=0 \ --setopt=install_weak_deps=0 \
--best \ --best \
--setopt=tsflags=nodocs \ --setopt=tsflags=nodocs \
tzdata && \ tzdata && \
microdnf -y reinstall \ # microdnf -y reinstall \
--disableplugin=subscription-manager \ # --disableplugin=subscription-manager \
--disablerepo "*" \ # --disablerepo "*" \
--enablerepo "ubi-9-baseos-rpms" \ # --enablerepo "ubi-9-baseos-rpms" \
--setopt=install_weak_deps=0 \ # --setopt=install_weak_deps=0 \
--setopt=keepcache=0 \ # --setopt=keepcache=0 \
--best \ # --best \
--setopt=tsflags=nodocs \ # --setopt=tsflags=nodocs \
tzdata && \ # tzdata && \
groupadd \ groupadd \
--system \ --system \
--gid 1995 \ --gid 1995 \

View File

@ -1,5 +1,5 @@
# syntax=docker/dockerfile:1 # syntax=docker/dockerfile:1
ARG OS_BASE_IMAGE=registry.access.redhat.com/ubi9/ubi-minimal:9.5 ARG OS_BASE_IMAGE=registry.access.redhat.com/ubi10/ubi-minimal:10.0
ARG MAJOR_VERSION=7.4 ARG MAJOR_VERSION=7.4
ARG RELEASE=0 ARG RELEASE=0
ARG ZBX_VERSION=${MAJOR_VERSION} ARG ZBX_VERSION=${MAJOR_VERSION}
@ -61,7 +61,8 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
shadow-utils \ shadow-utils \
findutils \ findutils \
glibc-locale-source \ glibc-locale-source \
mysql \ gzip \
mysql8.4 \
nginx \ nginx \
php-bcmath \ php-bcmath \
php-curl \ php-curl \
@ -72,23 +73,16 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
php-mbstring \ php-mbstring \
php-mysqlnd \ php-mysqlnd \
php-xml" && \ php-xml" && \
curl --tlsv1.2 -sSf -L https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm -o /tmp/epel-release-latest-9.noarch.rpm && \ curl --tlsv1.2 -sSf -L https://dl.fedoraproject.org/pub/epel/epel-release-latest-10.noarch.rpm -o /tmp/epel-release-latest-10.noarch.rpm && \
rpm -ivh /tmp/epel-release-latest-9.noarch.rpm && \ rpm -ivh /tmp/epel-release-latest-10.noarch.rpm && \
rm -rf /tmp/epel-release-latest-9.noarch.rpm && \ rm -rf /tmp/epel-release-latest-10.noarch.rpm && \
ARCH_SUFFIX="$(arch)"; \ ARCH_SUFFIX="$(arch)"; \
microdnf -y module enable \
--disablerepo "*" \
--enablerepo "rhel-9-for-$ARCH_SUFFIX-appstream-rpms" \
--setopt=install_weak_deps=0 \
--setopt=keepcache=0 \
php:8.2 \
nginx:1.24 && \
microdnf -y install \ microdnf -y install \
--disablerepo "*" \ --disablerepo "*" \
--enablerepo "ubi-9-baseos-rpms" \ --enablerepo "ubi-10-baseos-rpms" \
--enablerepo "ubi-9-appstream-rpms" \ --enablerepo "ubi-10-appstream-rpms" \
--enablerepo "rhel-9-for-$ARCH_SUFFIX-baseos-rpms" \ --enablerepo "rhel-10-for-$ARCH_SUFFIX-baseos-rpms" \
--enablerepo "rhel-9-for-$ARCH_SUFFIX-appstream-rpms" \ --enablerepo "rhel-10-for-$ARCH_SUFFIX-appstream-rpms" \
--enablerepo "epel" \ --enablerepo "epel" \
--setopt=install_weak_deps=0 \ --setopt=install_weak_deps=0 \
--setopt=keepcache=0 \ --setopt=keepcache=0 \
@ -98,20 +92,20 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
microdnf -y update \ microdnf -y update \
--disableplugin=subscription-manager \ --disableplugin=subscription-manager \
--disablerepo "*" \ --disablerepo "*" \
--enablerepo "ubi-9-baseos-rpms" \ --enablerepo "ubi-10-baseos-rpms" \
--setopt=install_weak_deps=0 \ --setopt=install_weak_deps=0 \
--best \ --best \
--setopt=tsflags=nodocs \ --setopt=tsflags=nodocs \
tzdata && \ tzdata && \
microdnf -y reinstall \ # microdnf -y reinstall \
--disableplugin=subscription-manager \ # --disableplugin=subscription-manager \
--disablerepo "*" \ # --disablerepo "*" \
--enablerepo "ubi-9-baseos-rpms" \ # --enablerepo "ubi-9-baseos-rpms" \
--setopt=install_weak_deps=0 \ # --setopt=install_weak_deps=0 \
--setopt=keepcache=0 \ # --setopt=keepcache=0 \
--best \ # --best \
--setopt=tsflags=nodocs \ # --setopt=tsflags=nodocs \
tzdata && \ # tzdata && \
groupadd \ groupadd \
--system \ --system \
--gid 1995 \ --gid 1995 \
@ -155,7 +149,8 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
chmod -R g=u /var/lib/php/session/ && \ chmod -R g=u /var/lib/php/session/ && \
microdnf -y remove \ microdnf -y remove \
findutils \ findutils \
glibc-locale-source glibc-locale-source \
gzip
HEALTHCHECK --interval=1m30s --timeout=3s --retries=3 --start-period=40s --start-interval=5s \ HEALTHCHECK --interval=1m30s --timeout=3s --retries=3 --start-period=40s --start-interval=5s \
CMD curl -f http://localhost:8080/ping || exit 1 CMD curl -f http://localhost:8080/ping || exit 1

View File

@ -1,5 +1,5 @@
# syntax=docker/dockerfile:1 # syntax=docker/dockerfile:1
ARG OS_BASE_IMAGE=registry.access.redhat.com/ubi9/ubi-minimal:9.5 ARG OS_BASE_IMAGE=registry.access.redhat.com/ubi10/ubi-minimal:10.0
ARG MAJOR_VERSION=7.4 ARG MAJOR_VERSION=7.4
ARG RELEASE=0 ARG RELEASE=0
ARG ZBX_VERSION=${MAJOR_VERSION} ARG ZBX_VERSION=${MAJOR_VERSION}
@ -7,7 +7,7 @@ ARG BUILD_BASE_IMAGE=zabbix-build-pgsql:rhel-${ZBX_VERSION}
FROM ${BUILD_BASE_IMAGE} AS builder FROM ${BUILD_BASE_IMAGE} AS builder
ARG OS_BASE_IMAGE=registry.access.redhat.com/ubi9/ubi-minimal:9.5 ARG OS_BASE_IMAGE=registry.access.redhat.com/ubi10/ubi-minimal:10.0
FROM ${OS_BASE_IMAGE} FROM ${OS_BASE_IMAGE}
ARG MAJOR_VERSION ARG MAJOR_VERSION
@ -62,6 +62,7 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
shadow-utils \ shadow-utils \
findutils \ findutils \
glibc-locale-source \ glibc-locale-source \
gzip \
nginx \ nginx \
postgresql \ postgresql \
php-bcmath \ php-bcmath \
@ -73,24 +74,16 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
php-mbstring \ php-mbstring \
php-pgsql \ php-pgsql \
php-xml" && \ php-xml" && \
curl --tlsv1.2 -sSf -L https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm -o /tmp/epel-release-latest-9.noarch.rpm && \ curl --tlsv1.2 -sSf -L https://dl.fedoraproject.org/pub/epel/epel-release-latest-10.noarch.rpm -o /tmp/epel-release-latest-10.noarch.rpm && \
rpm -ivh /tmp/epel-release-latest-9.noarch.rpm && \ rpm -ivh /tmp/epel-release-latest-10.noarch.rpm && \
rm -rf /tmp/epel-release-latest-9.noarch.rpm && \ rm -rf /tmp/epel-release-latest-10.noarch.rpm && \
ARCH_SUFFIX="$(arch)"; \ ARCH_SUFFIX="$(arch)"; \
microdnf -y module enable \
--disablerepo "*" \
--enablerepo "rhel-9-for-$ARCH_SUFFIX-appstream-rpms" \
--setopt=install_weak_deps=0 \
--setopt=keepcache=0 \
php:8.2 \
postgresql:16 \
nginx:1.24 && \
microdnf -y install \ microdnf -y install \
--disablerepo "*" \ --disablerepo "*" \
--enablerepo "ubi-9-baseos-rpms" \ --enablerepo "ubi-10-baseos-rpms" \
--enablerepo "ubi-9-appstream-rpms" \ --enablerepo "ubi-10-appstream-rpms" \
--enablerepo "rhel-9-for-$ARCH_SUFFIX-baseos-rpms" \ --enablerepo "rhel-10-for-$ARCH_SUFFIX-baseos-rpms" \
--enablerepo "rhel-9-for-$ARCH_SUFFIX-appstream-rpms" \ --enablerepo "rhel-10-for-$ARCH_SUFFIX-appstream-rpms" \
--enablerepo "epel" \ --enablerepo "epel" \
--setopt=install_weak_deps=0 \ --setopt=install_weak_deps=0 \
--setopt=keepcache=0 \ --setopt=keepcache=0 \
@ -100,20 +93,20 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
microdnf -y update \ microdnf -y update \
--disableplugin=subscription-manager \ --disableplugin=subscription-manager \
--disablerepo "*" \ --disablerepo "*" \
--enablerepo "ubi-9-baseos-rpms" \ --enablerepo "ubi-10-baseos-rpms" \
--setopt=install_weak_deps=0 \ --setopt=install_weak_deps=0 \
--best \ --best \
--setopt=tsflags=nodocs \ --setopt=tsflags=nodocs \
tzdata && \ tzdata && \
microdnf -y reinstall \ # microdnf -y reinstall \
--disableplugin=subscription-manager \ # --disableplugin=subscription-manager \
--disablerepo "*" \ # --disablerepo "*" \
--enablerepo "ubi-9-baseos-rpms" \ # --enablerepo "ubi-9-baseos-rpms" \
--setopt=install_weak_deps=0 \ # --setopt=install_weak_deps=0 \
--setopt=keepcache=0 \ # --setopt=keepcache=0 \
--best \ # --best \
--setopt=tsflags=nodocs \ # --setopt=tsflags=nodocs \
tzdata && \ # tzdata && \
groupadd \ groupadd \
--system \ --system \
--gid 1995 \ --gid 1995 \

View File

@ -1,5 +1,5 @@
# syntax=docker/dockerfile:1 # syntax=docker/dockerfile:1
ARG OS_BASE_IMAGE=registry.access.redhat.com/ubi9/ubi-minimal:9.5 ARG OS_BASE_IMAGE=registry.access.redhat.com/ubi10/ubi-minimal:10.0
ARG MAJOR_VERSION=7.4 ARG MAJOR_VERSION=7.4
ARG RELEASE=0 ARG RELEASE=0
ARG ZBX_VERSION=${MAJOR_VERSION} ARG ZBX_VERSION=${MAJOR_VERSION}
@ -7,7 +7,7 @@ ARG BUILD_BASE_IMAGE=zabbix-build-mysql:rhel-${ZBX_VERSION}
FROM ${BUILD_BASE_IMAGE} AS builder FROM ${BUILD_BASE_IMAGE} AS builder
ARG OS_BASE_IMAGE=registry.access.redhat.com/ubi9/ubi-minimal:9.5 ARG OS_BASE_IMAGE=registry.access.redhat.com/ubi10/ubi-minimal:10.0
FROM ${OS_BASE_IMAGE} FROM ${OS_BASE_IMAGE}
ARG MAJOR_VERSION ARG MAJOR_VERSION
@ -60,15 +60,15 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
INSTALL_PKGS="bash \ INSTALL_PKGS="bash \
shadow-utils \ shadow-utils \
chromium-headless" && \ chromium-headless" && \
curl --tlsv1.2 -sSf -L https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm -o /tmp/epel-release-latest-9.noarch.rpm && \ curl --tlsv1.2 -sSf -L https://dl.fedoraproject.org/pub/epel/epel-release-latest-10.noarch.rpm -o /tmp/epel-release-latest-10.noarch.rpm && \
rpm -ivh /tmp/epel-release-latest-9.noarch.rpm && \ rpm -ivh /tmp/epel-release-latest-10.noarch.rpm && \
rm -rf /tmp/epel-release-latest-9.noarch.rpm && \ rm -rf /tmp/epel-release-latest-10.noarch.rpm && \
ARCH_SUFFIX="$(arch)"; \ ARCH_SUFFIX="$(arch)"; \
microdnf -y install \ microdnf -y install \
--disablerepo "*" \ --disablerepo "*" \
--enablerepo "ubi-9-baseos-rpms" \ --enablerepo "ubi-10-baseos-rpms" \
--enablerepo "ubi-9-appstream-rpms" \ --enablerepo "ubi-10-appstream-rpms" \
--enablerepo "rhel-9-for-$ARCH_SUFFIX-appstream-rpms" \ --enablerepo "rhel-10-for-$ARCH_SUFFIX-appstream-rpms" \
--enablerepo "epel" \ --enablerepo "epel" \
--setopt=install_weak_deps=0 \ --setopt=install_weak_deps=0 \
--setopt=keepcache=0 \ --setopt=keepcache=0 \
@ -78,8 +78,8 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
microdnf -y install \ microdnf -y install \
--disableplugin=subscription-manager \ --disableplugin=subscription-manager \
--disablerepo "*" \ --disablerepo "*" \
--enablerepo "ubi-9-baseos-rpms" \ --enablerepo "ubi-10-baseos-rpms" \
--enablerepo "ubi-9-appstream-rpms" \ --enablerepo "ubi-10-appstream-rpms" \
--setopt=install_weak_deps=0 \ --setopt=install_weak_deps=0 \
--setopt=keepcache=0 \ --setopt=keepcache=0 \
--best \ --best \