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-pgsql:centos-${ZBX_VERSION}
@ -39,6 +39,7 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
curl-minimal \
findutils \
glibc-locale-source \
gzip \
nginx \
php-bcmath \
php-curl \
@ -59,14 +60,8 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
--setopt=keepcache=0 \
--best \
--nodocs epel-release && \
microdnf -y module enable \
--disablerepo "*" \
--enablerepo "appstream" \
--setopt=install_weak_deps=0 \
--setopt=keepcache=0 \
php:8.2 \
postgresql:16 \
nginx:1.24 && \
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" \
@ -106,6 +101,7 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
cd ${ZABBIX_WWW_ROOT}/ && \
rm -f conf/zabbix.conf.php conf/maintenance.inc.php conf/zabbix.conf.php.example && \
rm -rf tests && \
gunzip /usr/share/i18n/charmaps/UTF-8.gz && \
rm -f locale/add_new_language.sh locale/update_po.sh locale/make_mo.sh && \
find ${ZABBIX_WWW_ROOT}/locale -name '*.po' | xargs rm -f && \
find ${ZABBIX_WWW_ROOT}/locale -name '*.sh' | xargs rm -f && \
@ -125,7 +121,8 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
chmod -R g=u /var/lib/php/session/ && \
microdnf -y remove \
findutils \
glibc-locale-source
glibc-locale-source \
gzip
HEALTHCHECK --interval=1m30s --timeout=3s --retries=3 --start-period=40s --start-interval=5s \
CMD curl -f http://localhost:8080/ping || exit 1