mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2025-06-30 06:41:08 +02:00
Updated RHEL base image to 9 version
This commit is contained in:
@ -6,7 +6,7 @@ ARG BUILD_BASE_IMAGE=zabbix-build-mysql:rhel-${ZBX_VERSION}
|
||||
|
||||
FROM ${BUILD_BASE_IMAGE} as builder
|
||||
|
||||
FROM registry.access.redhat.com/ubi8/ubi-minimal
|
||||
FROM registry.access.redhat.com/ubi9/ubi-minimal
|
||||
|
||||
ARG MAJOR_VERSION
|
||||
ARG RELEASE
|
||||
@ -51,7 +51,7 @@ COPY --from=builder ["/tmp/zabbix-${ZBX_VERSION}/ui", "/usr/share/zabbix"]
|
||||
RUN set -eux && \
|
||||
INSTALL_PKGS="bash \
|
||||
tzdata \
|
||||
curl \
|
||||
curl-minimal \
|
||||
supervisor \
|
||||
shadow-utils \
|
||||
findutils \
|
||||
@ -66,24 +66,22 @@ RUN set -eux && \
|
||||
php-mbstring \
|
||||
php-mysqlnd \
|
||||
php-xml" && \
|
||||
curl -sSL -o /tmp/epel-release-latest-8.noarch.rpm https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm && \
|
||||
rpm -ivh /tmp/epel-release-latest-8.noarch.rpm && \
|
||||
rm -rf /tmp/epel-release-latest-8.noarch.rpm && \
|
||||
microdnf -y module enable mysql && \
|
||||
microdnf -y module enable php:8.0 nginx:1.20 && \
|
||||
curl -sSL -o /tmp/epel-release-latest-9.noarch.rpm https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm && \
|
||||
rpm -ivh /tmp/epel-release-latest-9.noarch.rpm && \
|
||||
rm -rf /tmp/epel-release-latest-9.noarch.rpm && \
|
||||
microdnf -y install \
|
||||
--disablerepo "*" \
|
||||
--enablerepo "ubi-8-baseos-rpms" \
|
||||
--enablerepo "ubi-8-appstream-rpms" \
|
||||
--enablerepo "rhel-8-for-x86_64-baseos-rpms" \
|
||||
--enablerepo "rhel-8-for-x86_64-appstream-rpms" \
|
||||
--enablerepo "ubi-9-baseos-rpms" \
|
||||
--enablerepo "ubi-9-appstream-rpms" \
|
||||
--enablerepo "rhel-9-for-x86_64-baseos-rpms" \
|
||||
--enablerepo "rhel-9-for-x86_64-appstream-rpms" \
|
||||
--enablerepo "epel" \
|
||||
--setopt=install_weak_deps=0 \
|
||||
--best \
|
||||
--setopt=tsflags=nodocs \
|
||||
${INSTALL_PKGS} && \
|
||||
microdnf -y reinstall \
|
||||
--enablerepo "ubi-8-baseos-rpms" \
|
||||
--enablerepo "ubi-9-baseos-rpms" \
|
||||
--setopt=install_weak_deps=0 \
|
||||
--best \
|
||||
--setopt=tsflags=nodocs \
|
||||
|
Reference in New Issue
Block a user