Updated CentOS 9 to CentOS 10 Stream

This commit is contained in:
Alexey Pustovalov
2025-02-17 15:11:04 +09:00
parent cb1e3a1240
commit f0feafafc1
18 changed files with 70 additions and 73 deletions

View File

@@ -1,5 +1,5 @@
# syntax=docker/dockerfile:1
ARG OS_BASE_IMAGE=quay.io/centos/centos:stream9-minimal
ARG OS_BASE_IMAGE=quay.io/centos/centos:stream10-minimal
ARG MAJOR_VERSION=7.4
ARG ZBX_VERSION=${MAJOR_VERSION}
ARG BUILD_BASE_IMAGE=zabbix-build-mysql:centos-${ZBX_VERSION}
@@ -61,8 +61,8 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
libpsl \
libbrotli \
libxml2 \
mysql \
mysql-libs \
mysql8.4 \
mysql8.4-libs \
net-snmp-libs \
OpenIPMI-libs \
openldap \
@@ -80,6 +80,8 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
--setopt=keepcache=0 \
--best \
--nodocs epel-release && \
sed -i 's/$releasever_major${releasever_minor:+.$releasever_minor}/$releasever/g' /etc/yum.repos.d/epel*.repo && \
sed -i 's/$releasever_major/$releasever/g' /etc/yum.repos.d/epel*.repo && \
microdnf -y install \
--disablerepo "*" \
--enablerepo "baseos" \
@@ -98,7 +100,7 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
--setopt=tsflags=nodocs \
tzdata && \
microdnf download libcurl && \
rpm -Uvh --nodeps --replacefiles "*curl*$( uname -i ).rpm" && \
rpm -Uvh --nodeps --replacefiles "*curl*el10*.rpm" && \
microdnf remove -y libcurl-minimal && \
rm -rf "*curl*$( uname -i ).rpm" && \
groupadd \