mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2025-01-26 07:18:37 +01:00
Updated CentOS 8 to CentOS 9
This commit is contained in:
parent
d598feb719
commit
604c81fac2
2
.env
2
.env
@ -70,7 +70,7 @@ RESTART_POLICY=unless-stopped
|
|||||||
|
|
||||||
# Cache base images
|
# Cache base images
|
||||||
ALPINE_CACHE_FROM=alpine:3.19
|
ALPINE_CACHE_FROM=alpine:3.19
|
||||||
CENTOS_CACHE_FROM=quay.io/centos/centos:stream8
|
CENTOS_CACHE_FROM=quay.io/centos/centos:stream9-slim
|
||||||
OL_CACHE_FROM=oraclelinux:8-slim
|
OL_CACHE_FROM=oraclelinux:8-slim
|
||||||
UBUNTU_CACHE_FROM=ubuntu:jammy
|
UBUNTU_CACHE_FROM=ubuntu:jammy
|
||||||
RHEL_CACHE_FROM=registry.access.redhat.com/ubi8/ubi-minimal:8.10
|
RHEL_CACHE_FROM=registry.access.redhat.com/ubi8/ubi-minimal:8.10
|
||||||
|
@ -5,7 +5,7 @@ ARG BUILD_BASE_IMAGE=zabbix-build-mysql:centos-${ZBX_VERSION}
|
|||||||
|
|
||||||
FROM ${BUILD_BASE_IMAGE} AS builder
|
FROM ${BUILD_BASE_IMAGE} AS builder
|
||||||
|
|
||||||
FROM quay.io/centos/centos:stream8
|
FROM quay.io/centos/centos:stream9-minimal
|
||||||
|
|
||||||
ARG MAJOR_VERSION
|
ARG MAJOR_VERSION
|
||||||
ARG ZBX_VERSION
|
ARG ZBX_VERSION
|
||||||
@ -32,7 +32,6 @@ COPY --from=builder ["/tmp/zabbix-${ZBX_VERSION}-output/agent/conf/", "/etc/zabb
|
|||||||
|
|
||||||
RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
||||||
set -eux && \
|
set -eux && \
|
||||||
REPOLIST="baseos,appstream,epel" && \
|
|
||||||
INSTALL_PKGS="bash \
|
INSTALL_PKGS="bash \
|
||||||
tini \
|
tini \
|
||||||
iputils \
|
iputils \
|
||||||
@ -40,28 +39,31 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
|||||||
libcurl-minimal \
|
libcurl-minimal \
|
||||||
libmodbus \
|
libmodbus \
|
||||||
openssl-libs \
|
openssl-libs \
|
||||||
|
shadow-utils \
|
||||||
zlib" && \
|
zlib" && \
|
||||||
dnf -y install \
|
microdnf -y install \
|
||||||
--disablerepo "*" \
|
--disablerepo "*" \
|
||||||
--enablerepo "extras" \
|
--enablerepo "extras-common" \
|
||||||
--setopt=tsflags=nodocs \
|
--setopt=install_weak_deps=0 \
|
||||||
--setopt=install_weak_deps=False \
|
--setopt=keepcache=0 \
|
||||||
--setopt=keepcache=False \
|
--best \
|
||||||
--best epel-release && \
|
--nodocs epel-release && \
|
||||||
dnf -y install \
|
microdnf -y install \
|
||||||
--disablerepo "*" \
|
|
||||||
--enablerepo "${REPOLIST}" \
|
|
||||||
--setopt=tsflags=nodocs \
|
|
||||||
--setopt=install_weak_deps=False \
|
|
||||||
--setopt=keepcache=False \
|
|
||||||
--best ${INSTALL_PKGS} && \
|
|
||||||
dnf -y reinstall \
|
|
||||||
--disablerepo "*" \
|
--disablerepo "*" \
|
||||||
--enablerepo "baseos" \
|
--enablerepo "baseos" \
|
||||||
|
--enablerepo "appstream" \
|
||||||
|
--enablerepo="epel" \
|
||||||
|
--setopt=install_weak_deps=0 \
|
||||||
|
--setopt=keepcache=0 \
|
||||||
|
--best \
|
||||||
|
--nodocs ${INSTALL_PKGS} && \
|
||||||
|
microdnf -y reinstall \
|
||||||
|
--enablerepo "baseos" \
|
||||||
|
--setopt=install_weak_deps=0 \
|
||||||
|
--setopt=keepcache=0 \
|
||||||
|
--best \
|
||||||
--setopt=tsflags=nodocs \
|
--setopt=tsflags=nodocs \
|
||||||
--setopt=install_weak_deps=False \
|
tzdata && \
|
||||||
--setopt=keepcache=False \
|
|
||||||
--best tzdata && \
|
|
||||||
groupadd \
|
groupadd \
|
||||||
--system \
|
--system \
|
||||||
--gid 1995 \
|
--gid 1995 \
|
||||||
@ -82,7 +84,7 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
|||||||
chown --quiet -R zabbix:root /etc/zabbix/ /var/lib/zabbix/ && \
|
chown --quiet -R zabbix:root /etc/zabbix/ /var/lib/zabbix/ && \
|
||||||
chgrp -R 0 /etc/zabbix/ /var/lib/zabbix/ && \
|
chgrp -R 0 /etc/zabbix/ /var/lib/zabbix/ && \
|
||||||
chmod -R g=u /etc/zabbix/ /var/lib/zabbix/ && \
|
chmod -R g=u /etc/zabbix/ /var/lib/zabbix/ && \
|
||||||
dnf -y clean all
|
microdnf -y clean all
|
||||||
|
|
||||||
EXPOSE 10050/TCP
|
EXPOSE 10050/TCP
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ ARG BUILD_BASE_IMAGE=zabbix-build-mysql:centos-${ZBX_VERSION}
|
|||||||
|
|
||||||
FROM ${BUILD_BASE_IMAGE} AS builder
|
FROM ${BUILD_BASE_IMAGE} AS builder
|
||||||
|
|
||||||
FROM quay.io/centos/centos:stream8
|
FROM quay.io/centos/centos:stream9-minimal
|
||||||
|
|
||||||
ARG MAJOR_VERSION
|
ARG MAJOR_VERSION
|
||||||
ARG ZBX_VERSION
|
ARG ZBX_VERSION
|
||||||
@ -32,36 +32,38 @@ COPY --from=builder ["/tmp/zabbix-${ZBX_VERSION}-output/agent2/conf/", "/etc/zab
|
|||||||
|
|
||||||
RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
||||||
set -eux && \
|
set -eux && \
|
||||||
REPOLIST="baseos,appstream,epel" && \
|
|
||||||
INSTALL_PKGS="bash \
|
INSTALL_PKGS="bash \
|
||||||
tini \
|
tini \
|
||||||
iputils \
|
iputils \
|
||||||
pcre2 \
|
pcre2 \
|
||||||
libcurl-minimal \
|
libcurl-minimal \
|
||||||
smartmontools \
|
smartmontools \
|
||||||
|
shadow-utils \
|
||||||
sudo \
|
sudo \
|
||||||
openssl-libs" && \
|
openssl-libs" && \
|
||||||
dnf -y install \
|
microdnf -y install \
|
||||||
--disablerepo "*" \
|
--disablerepo "*" \
|
||||||
--enablerepo "extras" \
|
--enablerepo "extras-common" \
|
||||||
--setopt=tsflags=nodocs \
|
--setopt=install_weak_deps=0 \
|
||||||
--setopt=install_weak_deps=False \
|
--setopt=keepcache=0 \
|
||||||
--setopt=keepcache=False \
|
--best \
|
||||||
--best epel-release && \
|
--nodocs epel-release && \
|
||||||
dnf -y install \
|
microdnf -y install \
|
||||||
--disablerepo "*" \
|
|
||||||
--enablerepo "${REPOLIST}" \
|
|
||||||
--setopt=tsflags=nodocs \
|
|
||||||
--setopt=install_weak_deps=False \
|
|
||||||
--setopt=keepcache=False \
|
|
||||||
--best ${INSTALL_PKGS} && \
|
|
||||||
dnf -y reinstall \
|
|
||||||
--disablerepo "*" \
|
--disablerepo "*" \
|
||||||
--enablerepo "baseos" \
|
--enablerepo "baseos" \
|
||||||
|
--enablerepo "appstream" \
|
||||||
|
--enablerepo="epel" \
|
||||||
|
--setopt=install_weak_deps=0 \
|
||||||
|
--setopt=keepcache=0 \
|
||||||
|
--best \
|
||||||
|
--nodocs ${INSTALL_PKGS} && \
|
||||||
|
microdnf -y reinstall \
|
||||||
|
--enablerepo "baseos" \
|
||||||
|
--setopt=install_weak_deps=0 \
|
||||||
|
--setopt=keepcache=0 \
|
||||||
|
--best \
|
||||||
--setopt=tsflags=nodocs \
|
--setopt=tsflags=nodocs \
|
||||||
--setopt=install_weak_deps=False \
|
tzdata && \
|
||||||
--setopt=keepcache=False \
|
|
||||||
--best tzdata && \
|
|
||||||
groupadd \
|
groupadd \
|
||||||
--system \
|
--system \
|
||||||
--gid 1995 \
|
--gid 1995 \
|
||||||
@ -85,7 +87,7 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
|||||||
chown --quiet -R zabbix:root /etc/zabbix/ /var/lib/zabbix/ /usr/sbin/zabbix-agent2-plugin/ && \
|
chown --quiet -R zabbix:root /etc/zabbix/ /var/lib/zabbix/ /usr/sbin/zabbix-agent2-plugin/ && \
|
||||||
chgrp -R 0 /etc/zabbix/ /var/lib/zabbix/ /usr/sbin/zabbix-agent2-plugin/ && \
|
chgrp -R 0 /etc/zabbix/ /var/lib/zabbix/ /usr/sbin/zabbix-agent2-plugin/ && \
|
||||||
chmod -R g=u /etc/zabbix/ /var/lib/zabbix/ /usr/sbin/zabbix-agent2-plugin/ && \
|
chmod -R g=u /etc/zabbix/ /var/lib/zabbix/ /usr/sbin/zabbix-agent2-plugin/ && \
|
||||||
dnf -y clean all
|
microdnf -y clean all
|
||||||
|
|
||||||
EXPOSE 10050/TCP 31999/TCP
|
EXPOSE 10050/TCP 31999/TCP
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# syntax=docker/dockerfile:1
|
# syntax=docker/dockerfile:1
|
||||||
FROM quay.io/centos/centos:stream8
|
FROM quay.io/centos/centos:stream9-minimal
|
||||||
|
|
||||||
ARG MAJOR_VERSION=6.0
|
ARG MAJOR_VERSION=6.0
|
||||||
ARG ZBX_VERSION=${MAJOR_VERSION}.36
|
ARG ZBX_VERSION=${MAJOR_VERSION}.36
|
||||||
@ -19,7 +19,6 @@ LABEL org.opencontainers.image.authors="Alexey Pustovalov <alexey.pustovalov@zab
|
|||||||
|
|
||||||
RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
||||||
set -eux && \
|
set -eux && \
|
||||||
REPOLIST="baseos,appstream,powertools,epel" && \
|
|
||||||
INSTALL_PKGS="autoconf \
|
INSTALL_PKGS="autoconf \
|
||||||
automake \
|
automake \
|
||||||
bash \
|
bash \
|
||||||
@ -47,24 +46,27 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
|||||||
go-toolset \
|
go-toolset \
|
||||||
unixODBC-devel \
|
unixODBC-devel \
|
||||||
zlib-devel" && \
|
zlib-devel" && \
|
||||||
dnf -y install \
|
microdnf -y install \
|
||||||
--disablerepo "*" \
|
--disablerepo "*" \
|
||||||
--enablerepo "extras" \
|
--enablerepo "extras-common" \
|
||||||
--setopt=tsflags=nodocs \
|
--setopt=install_weak_deps=0 \
|
||||||
--setopt=install_weak_deps=False \
|
--setopt=keepcache=0 \
|
||||||
--setopt=keepcache=False \
|
--best \
|
||||||
--best epel-release && \
|
--nodocs epel-release && \
|
||||||
dnf -y module enable \
|
microdnf -y module enable \
|
||||||
--disablerepo "*" \
|
--disablerepo "*" \
|
||||||
--enablerepo "appstream" \
|
--enablerepo "appstream" \
|
||||||
--setopt=install_weak_deps=False \
|
--setopt=install_weak_deps=0 \
|
||||||
--setopt=keepcache=False \
|
--setopt=keepcache=0 \
|
||||||
postgresql:16 mysql && \
|
postgresql:16 && \
|
||||||
dnf -y install \
|
microdnf -y install \
|
||||||
--disablerepo "*" \
|
--disablerepo "*" \
|
||||||
--enablerepo "${REPOLIST}" \
|
--enablerepo "baseos" \
|
||||||
--setopt=tsflags=nodocs \
|
--enablerepo "appstream" \
|
||||||
--setopt=install_weak_deps=False \
|
--enablerepo "crb" \
|
||||||
--setopt=keepcache=False \
|
--enablerepo="epel" \
|
||||||
--best ${INSTALL_PKGS} && \
|
--setopt=install_weak_deps=0 \
|
||||||
dnf -y clean all
|
--setopt=keepcache=0 \
|
||||||
|
--best \
|
||||||
|
--nodocs ${INSTALL_PKGS} && \
|
||||||
|
microdnf -y clean all
|
||||||
|
@ -5,7 +5,7 @@ ARG BUILD_BASE_IMAGE=zabbix-build-mysql:centos-${ZBX_VERSION}
|
|||||||
|
|
||||||
FROM ${BUILD_BASE_IMAGE} AS builder
|
FROM ${BUILD_BASE_IMAGE} AS builder
|
||||||
|
|
||||||
FROM quay.io/centos/centos:stream8
|
FROM quay.io/centos/centos:stream9-minimal
|
||||||
|
|
||||||
ARG MAJOR_VERSION
|
ARG MAJOR_VERSION
|
||||||
ARG ZBX_VERSION
|
ARG ZBX_VERSION
|
||||||
@ -30,17 +30,18 @@ COPY --from=builder ["/tmp/zabbix-${ZBX_VERSION}-output/java_gateway/sbin/", "/u
|
|||||||
|
|
||||||
RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
||||||
set -eux && \
|
set -eux && \
|
||||||
REPOLIST="baseos,appstream" && \
|
|
||||||
INSTALL_PKGS="bash \
|
INSTALL_PKGS="bash \
|
||||||
|
shadow-utils \
|
||||||
java-17-openjdk-headless \
|
java-17-openjdk-headless \
|
||||||
findutils" && \
|
findutils" && \
|
||||||
dnf -y install \
|
microdnf -y install \
|
||||||
--disablerepo "*" \
|
--disablerepo "*" \
|
||||||
--enablerepo "${REPOLIST}" \
|
--enablerepo "baseos" \
|
||||||
--setopt=tsflags=nodocs \
|
--enablerepo "appstream" \
|
||||||
--setopt=install_weak_deps=False \
|
--setopt=install_weak_deps=0 \
|
||||||
--setopt=keepcache=False \
|
--setopt=keepcache=0 \
|
||||||
--best ${INSTALL_PKGS} && \
|
--best \
|
||||||
|
--nodocs ${INSTALL_PKGS} && \
|
||||||
groupadd \
|
groupadd \
|
||||||
--system \
|
--system \
|
||||||
--gid 1995 \
|
--gid 1995 \
|
||||||
@ -61,7 +62,7 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
|||||||
chown --quiet -R zabbix:root /etc/zabbix/ /usr/sbin/zabbix_java/ && \
|
chown --quiet -R zabbix:root /etc/zabbix/ /usr/sbin/zabbix_java/ && \
|
||||||
chgrp -R 0 /etc/zabbix/ /usr/sbin/zabbix_java/ && \
|
chgrp -R 0 /etc/zabbix/ /usr/sbin/zabbix_java/ && \
|
||||||
chmod -R g=u /etc/zabbix/ /usr/sbin/zabbix_java/ && \
|
chmod -R g=u /etc/zabbix/ /usr/sbin/zabbix_java/ && \
|
||||||
dnf -y clean all
|
microdnf -y clean all
|
||||||
|
|
||||||
EXPOSE 10052/TCP
|
EXPOSE 10052/TCP
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ ARG BUILD_BASE_IMAGE=zabbix-build-mysql:centos-${ZBX_VERSION}
|
|||||||
|
|
||||||
FROM ${BUILD_BASE_IMAGE} AS builder
|
FROM ${BUILD_BASE_IMAGE} AS builder
|
||||||
|
|
||||||
FROM quay.io/centos/centos:stream8
|
FROM quay.io/centos/centos:stream9-minimal
|
||||||
|
|
||||||
ARG MAJOR_VERSION
|
ARG MAJOR_VERSION
|
||||||
ARG ZBX_VERSION
|
ARG ZBX_VERSION
|
||||||
@ -35,7 +35,6 @@ COPY --from=builder ["/tmp/zabbix-${ZBX_VERSION}-output/proxy/database/mysql/",
|
|||||||
|
|
||||||
RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
||||||
set -eux && \
|
set -eux && \
|
||||||
REPOLIST="baseos,appstream,epel" && \
|
|
||||||
INSTALL_PKGS="libevent \
|
INSTALL_PKGS="libevent \
|
||||||
tini \
|
tini \
|
||||||
traceroute \
|
traceroute \
|
||||||
@ -52,36 +51,33 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
|||||||
openldap \
|
openldap \
|
||||||
openssl-libs \
|
openssl-libs \
|
||||||
pcre2 \
|
pcre2 \
|
||||||
|
shadow-utils \
|
||||||
zlib \
|
zlib \
|
||||||
unixODBC" && \
|
unixODBC" && \
|
||||||
dnf -y install \
|
microdnf -y install \
|
||||||
--disablerepo "*" \
|
--disablerepo "*" \
|
||||||
--enablerepo "extras" \
|
--enablerepo "extras-common" \
|
||||||
--setopt=tsflags=nodocs \
|
--setopt=install_weak_deps=0 \
|
||||||
--setopt=install_weak_deps=False \
|
--setopt=keepcache=0 \
|
||||||
--setopt=keepcache=False \
|
--best \
|
||||||
--best epel-release && \
|
--nodocs epel-release && \
|
||||||
dnf -y module enable \
|
microdnf -y install \
|
||||||
--disablerepo "*" \
|
|
||||||
--enablerepo "appstream" \
|
|
||||||
--setopt=tsflags=nodocs \
|
|
||||||
--setopt=install_weak_deps=False \
|
|
||||||
--setopt=keepcache=False \
|
|
||||||
mysql && \
|
|
||||||
dnf -y install \
|
|
||||||
--disablerepo "*" \
|
|
||||||
--enablerepo "${REPOLIST}" \
|
|
||||||
--setopt=tsflags=nodocs \
|
|
||||||
--setopt=install_weak_deps=False \
|
|
||||||
--setopt=keepcache=False \
|
|
||||||
--best ${INSTALL_PKGS} && \
|
|
||||||
dnf -y reinstall \
|
|
||||||
--disablerepo "*" \
|
--disablerepo "*" \
|
||||||
--enablerepo "baseos" \
|
--enablerepo "baseos" \
|
||||||
|
--enablerepo "appstream" \
|
||||||
|
--enablerepo "crb" \
|
||||||
|
--enablerepo="epel" \
|
||||||
|
--setopt=install_weak_deps=0 \
|
||||||
|
--setopt=keepcache=0 \
|
||||||
|
--best \
|
||||||
|
--nodocs ${INSTALL_PKGS} && \
|
||||||
|
microdnf -y reinstall \
|
||||||
|
--enablerepo "baseos" \
|
||||||
|
--setopt=install_weak_deps=0 \
|
||||||
|
--setopt=keepcache=0 \
|
||||||
|
--best \
|
||||||
--setopt=tsflags=nodocs \
|
--setopt=tsflags=nodocs \
|
||||||
--setopt=install_weak_deps=False \
|
tzdata && \
|
||||||
--setopt=keepcache=False \
|
|
||||||
--best tzdata && \
|
|
||||||
groupadd \
|
groupadd \
|
||||||
--system \
|
--system \
|
||||||
--gid 1995 \
|
--gid 1995 \
|
||||||
@ -113,7 +109,7 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
|||||||
chown --quiet -R zabbix:root /etc/zabbix/ /var/lib/zabbix/ && \
|
chown --quiet -R zabbix:root /etc/zabbix/ /var/lib/zabbix/ && \
|
||||||
chgrp -R 0 /etc/zabbix/ /var/lib/zabbix/ && \
|
chgrp -R 0 /etc/zabbix/ /var/lib/zabbix/ && \
|
||||||
chmod -R g=u /etc/zabbix/ /var/lib/zabbix/ && \
|
chmod -R g=u /etc/zabbix/ /var/lib/zabbix/ && \
|
||||||
dnf -y clean all
|
microdnf -y clean all
|
||||||
|
|
||||||
EXPOSE 10051/TCP
|
EXPOSE 10051/TCP
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ ARG BUILD_BASE_IMAGE=zabbix-build-sqlite3:centos-${ZBX_VERSION}
|
|||||||
|
|
||||||
FROM ${BUILD_BASE_IMAGE} AS builder
|
FROM ${BUILD_BASE_IMAGE} AS builder
|
||||||
|
|
||||||
FROM quay.io/centos/centos:stream8
|
FROM quay.io/centos/centos:stream9-minimal
|
||||||
|
|
||||||
ARG MAJOR_VERSION
|
ARG MAJOR_VERSION
|
||||||
ARG ZBX_VERSION
|
ARG ZBX_VERSION
|
||||||
@ -34,7 +34,6 @@ COPY --from=builder ["/tmp/zabbix-${ZBX_VERSION}-output/general/bin/", "/usr/bin
|
|||||||
|
|
||||||
RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
||||||
set -eux && \
|
set -eux && \
|
||||||
REPOLIST="baseos,appstream,epel" && \
|
|
||||||
INSTALL_PKGS="bash \
|
INSTALL_PKGS="bash \
|
||||||
tini \
|
tini \
|
||||||
libevent \
|
libevent \
|
||||||
@ -49,29 +48,32 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
|||||||
openldap \
|
openldap \
|
||||||
openssl-libs \
|
openssl-libs \
|
||||||
pcre2 \
|
pcre2 \
|
||||||
|
shadow-utils \
|
||||||
zlib \
|
zlib \
|
||||||
unixODBC" && \
|
unixODBC" && \
|
||||||
dnf -y install \
|
microdnf -y install \
|
||||||
--disablerepo "*" \
|
--disablerepo "*" \
|
||||||
--enablerepo "extras" \
|
--enablerepo "extras-common" \
|
||||||
--setopt=tsflags=nodocs \
|
--setopt=install_weak_deps=0 \
|
||||||
--setopt=install_weak_deps=False \
|
--setopt=keepcache=0 \
|
||||||
--setopt=keepcache=False \
|
--best \
|
||||||
--best epel-release && \
|
--nodocs epel-release && \
|
||||||
dnf -y install \
|
microdnf -y install \
|
||||||
--disablerepo "*" \
|
|
||||||
--enablerepo "${REPOLIST}" \
|
|
||||||
--setopt=tsflags=nodocs \
|
|
||||||
--setopt=install_weak_deps=False \
|
|
||||||
--setopt=keepcache=False \
|
|
||||||
--best ${INSTALL_PKGS} && \
|
|
||||||
dnf -y reinstall \
|
|
||||||
--disablerepo "*" \
|
--disablerepo "*" \
|
||||||
--enablerepo "baseos" \
|
--enablerepo "baseos" \
|
||||||
|
--enablerepo "appstream" \
|
||||||
|
--enablerepo="epel" \
|
||||||
|
--setopt=install_weak_deps=0 \
|
||||||
|
--setopt=keepcache=0 \
|
||||||
|
--best \
|
||||||
|
--nodocs ${INSTALL_PKGS} && \
|
||||||
|
microdnf -y reinstall \
|
||||||
|
--enablerepo "baseos" \
|
||||||
|
--setopt=install_weak_deps=0 \
|
||||||
|
--setopt=keepcache=0 \
|
||||||
|
--best \
|
||||||
--setopt=tsflags=nodocs \
|
--setopt=tsflags=nodocs \
|
||||||
--setopt=install_weak_deps=False \
|
tzdata && \
|
||||||
--setopt=keepcache=False \
|
|
||||||
--best tzdata && \
|
|
||||||
groupadd \
|
groupadd \
|
||||||
--system \
|
--system \
|
||||||
--gid 1995 \
|
--gid 1995 \
|
||||||
@ -103,7 +105,7 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
|||||||
chown --quiet -R zabbix:root /etc/zabbix/ /var/lib/zabbix/ && \
|
chown --quiet -R zabbix:root /etc/zabbix/ /var/lib/zabbix/ && \
|
||||||
chgrp -R 0 /etc/zabbix/ /var/lib/zabbix/ && \
|
chgrp -R 0 /etc/zabbix/ /var/lib/zabbix/ && \
|
||||||
chmod -R g=u /etc/zabbix/ /var/lib/zabbix/ && \
|
chmod -R g=u /etc/zabbix/ /var/lib/zabbix/ && \
|
||||||
dnf -y clean all
|
microdnf -y clean all
|
||||||
|
|
||||||
EXPOSE 10051/TCP
|
EXPOSE 10051/TCP
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ ARG BUILD_BASE_IMAGE=zabbix-build-mysql:centos-${ZBX_VERSION}
|
|||||||
|
|
||||||
FROM ${BUILD_BASE_IMAGE} AS builder
|
FROM ${BUILD_BASE_IMAGE} AS builder
|
||||||
|
|
||||||
FROM quay.io/centos/centos:stream8
|
FROM quay.io/centos/centos:stream9-minimal
|
||||||
|
|
||||||
ARG MAJOR_VERSION
|
ARG MAJOR_VERSION
|
||||||
ARG ZBX_VERSION
|
ARG ZBX_VERSION
|
||||||
@ -35,17 +35,19 @@ COPY --from=builder ["/tmp/zabbix-${ZBX_VERSION}-output/server/database/mysql/cr
|
|||||||
|
|
||||||
RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
||||||
set -eux && \
|
set -eux && \
|
||||||
REPOLIST="baseos,appstream,epel" && \
|
|
||||||
INSTALL_PKGS="fping \
|
INSTALL_PKGS="fping \
|
||||||
tini \
|
tini \
|
||||||
traceroute \
|
traceroute \
|
||||||
nmap \
|
nmap \
|
||||||
|
hostname \
|
||||||
file-libs \
|
file-libs \
|
||||||
iputils \
|
iputils \
|
||||||
traceroute \
|
traceroute \
|
||||||
libevent \
|
libevent \
|
||||||
libxml2 \
|
|
||||||
libssh \
|
libssh \
|
||||||
|
libpsl \
|
||||||
|
libbrotli \
|
||||||
|
libxml2 \
|
||||||
mysql \
|
mysql \
|
||||||
mysql-libs \
|
mysql-libs \
|
||||||
net-snmp-libs \
|
net-snmp-libs \
|
||||||
@ -53,37 +55,38 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
|||||||
openldap \
|
openldap \
|
||||||
openssl-libs \
|
openssl-libs \
|
||||||
pcre2 \
|
pcre2 \
|
||||||
|
shadow-utils \
|
||||||
zlib \
|
zlib \
|
||||||
gzip \
|
gzip \
|
||||||
unixODBC" && \
|
unixODBC" && \
|
||||||
dnf -y install \
|
microdnf -y install \
|
||||||
--disablerepo "*" \
|
--disablerepo "*" \
|
||||||
--enablerepo "extras" \
|
--enablerepo "extras-common" \
|
||||||
--setopt=tsflags=nodocs \
|
--setopt=install_weak_deps=0 \
|
||||||
--setopt=install_weak_deps=False \
|
--setopt=keepcache=0 \
|
||||||
--setopt=keepcache=False \
|
--best \
|
||||||
--best epel-release && \
|
--nodocs epel-release && \
|
||||||
dnf -y module enable \
|
microdnf -y install \
|
||||||
--disablerepo "*" \
|
|
||||||
--enablerepo "appstream" \
|
|
||||||
--setopt=tsflags=nodocs \
|
|
||||||
--setopt=install_weak_deps=False \
|
|
||||||
--setopt=keepcache=False \
|
|
||||||
mysql && \
|
|
||||||
dnf -y install \
|
|
||||||
--disablerepo "*" \
|
|
||||||
--enablerepo "${REPOLIST}" \
|
|
||||||
--setopt=tsflags=nodocs \
|
|
||||||
--setopt=install_weak_deps=False \
|
|
||||||
--setopt=keepcache=False \
|
|
||||||
--best ${INSTALL_PKGS} && \
|
|
||||||
dnf -y reinstall \
|
|
||||||
--disablerepo "*" \
|
--disablerepo "*" \
|
||||||
--enablerepo "baseos" \
|
--enablerepo "baseos" \
|
||||||
|
--enablerepo "appstream" \
|
||||||
|
--enablerepo "crb" \
|
||||||
|
--enablerepo="epel" \
|
||||||
|
--setopt=install_weak_deps=0 \
|
||||||
|
--setopt=keepcache=0 \
|
||||||
|
--best \
|
||||||
|
--nodocs ${INSTALL_PKGS} && \
|
||||||
|
microdnf -y reinstall \
|
||||||
|
--enablerepo "baseos" \
|
||||||
|
--setopt=install_weak_deps=0 \
|
||||||
|
--setopt=keepcache=0 \
|
||||||
|
--best \
|
||||||
--setopt=tsflags=nodocs \
|
--setopt=tsflags=nodocs \
|
||||||
--setopt=install_weak_deps=False \
|
tzdata && \
|
||||||
--setopt=keepcache=False \
|
microdnf download libcurl && \
|
||||||
--best tzdata && \
|
rpm -Uvh --nodeps --replacefiles "*curl*$( uname -i ).rpm" && \
|
||||||
|
microdnf remove -y libcurl-minimal && \
|
||||||
|
rm -rf "*curl*$( uname -i ).rpm" && \
|
||||||
groupadd \
|
groupadd \
|
||||||
--system \
|
--system \
|
||||||
--gid 1995 \
|
--gid 1995 \
|
||||||
@ -119,7 +122,7 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
|||||||
chown --quiet -R zabbix:root /etc/zabbix/ /var/lib/zabbix/ && \
|
chown --quiet -R zabbix:root /etc/zabbix/ /var/lib/zabbix/ && \
|
||||||
chgrp -R 0 /etc/zabbix/ /var/lib/zabbix/ && \
|
chgrp -R 0 /etc/zabbix/ /var/lib/zabbix/ && \
|
||||||
chmod -R g=u /etc/zabbix/ /var/lib/zabbix/ && \
|
chmod -R g=u /etc/zabbix/ /var/lib/zabbix/ && \
|
||||||
dnf -y clean all
|
microdnf -y clean all
|
||||||
|
|
||||||
EXPOSE 10051/TCP
|
EXPOSE 10051/TCP
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ ARG BUILD_BASE_IMAGE=zabbix-build-pgsql:centos-${ZBX_VERSION}
|
|||||||
|
|
||||||
FROM ${BUILD_BASE_IMAGE} AS builder
|
FROM ${BUILD_BASE_IMAGE} AS builder
|
||||||
|
|
||||||
FROM quay.io/centos/centos:stream8
|
FROM quay.io/centos/centos:stream9-minimal
|
||||||
|
|
||||||
ARG MAJOR_VERSION
|
ARG MAJOR_VERSION
|
||||||
ARG ZBX_VERSION
|
ARG ZBX_VERSION
|
||||||
@ -35,16 +35,18 @@ COPY --from=builder ["/tmp/zabbix-${ZBX_VERSION}-output/server/database/postgres
|
|||||||
|
|
||||||
RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
||||||
set -eux && \
|
set -eux && \
|
||||||
REPOLIST="baseos,appstream,epel" && \
|
|
||||||
INSTALL_PKGS="fping \
|
INSTALL_PKGS="fping \
|
||||||
file-libs \
|
|
||||||
tini \
|
tini \
|
||||||
|
file-libs \
|
||||||
traceroute \
|
traceroute \
|
||||||
|
hostname \
|
||||||
nmap \
|
nmap \
|
||||||
iputils \
|
iputils \
|
||||||
traceroute \
|
traceroute \
|
||||||
libevent \
|
libevent \
|
||||||
libssh \
|
libssh \
|
||||||
|
libpsl \
|
||||||
|
libbrotli \
|
||||||
libxml2 \
|
libxml2 \
|
||||||
net-snmp-libs \
|
net-snmp-libs \
|
||||||
OpenIPMI-libs \
|
OpenIPMI-libs \
|
||||||
@ -53,37 +55,43 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
|||||||
pcre2 \
|
pcre2 \
|
||||||
postgresql \
|
postgresql \
|
||||||
postgresql-private-libs \
|
postgresql-private-libs \
|
||||||
|
shadow-utils \
|
||||||
zlib \
|
zlib \
|
||||||
gzip \
|
gzip \
|
||||||
unixODBC" && \
|
unixODBC" && \
|
||||||
dnf -y install \
|
microdnf -y install \
|
||||||
--disablerepo "*" \
|
--disablerepo "*" \
|
||||||
--enablerepo "extras" \
|
--enablerepo "extras-common" \
|
||||||
--setopt=tsflags=nodocs \
|
--setopt=install_weak_deps=0 \
|
||||||
--setopt=install_weak_deps=False \
|
--setopt=keepcache=0 \
|
||||||
--setopt=keepcache=False \
|
--best \
|
||||||
--best epel-release && \
|
--nodocs epel-release && \
|
||||||
dnf -y module enable \
|
microdnf -y module enable \
|
||||||
--disablerepo "*" \
|
--disablerepo "*" \
|
||||||
--enablerepo "appstream" \
|
--enablerepo "appstream" \
|
||||||
--setopt=tsflags=nodocs \
|
|
||||||
--setopt=install_weak_deps=0 \
|
--setopt=install_weak_deps=0 \
|
||||||
--setopt=keepcache=0 \
|
--setopt=keepcache=0 \
|
||||||
postgresql:16 && \
|
postgresql:16 && \
|
||||||
dnf -y install \
|
microdnf -y install \
|
||||||
--disablerepo "*" \
|
|
||||||
--enablerepo "${REPOLIST}" \
|
|
||||||
--setopt=tsflags=nodocs \
|
|
||||||
--setopt=install_weak_deps=False \
|
|
||||||
--setopt=keepcache=False \
|
|
||||||
--best ${INSTALL_PKGS} && \
|
|
||||||
dnf -y reinstall \
|
|
||||||
--disablerepo "*" \
|
--disablerepo "*" \
|
||||||
--enablerepo "baseos" \
|
--enablerepo "baseos" \
|
||||||
|
--enablerepo "appstream" \
|
||||||
|
--enablerepo="epel" \
|
||||||
|
--setopt=install_weak_deps=0 \
|
||||||
|
--setopt=keepcache=0 \
|
||||||
|
--best \
|
||||||
|
--nodocs ${INSTALL_PKGS} && \
|
||||||
|
microdnf -y reinstall \
|
||||||
|
--enablerepo "baseos" \
|
||||||
|
--setopt=install_weak_deps=0 \
|
||||||
|
--setopt=keepcache=0 \
|
||||||
|
--best \
|
||||||
--setopt=tsflags=nodocs \
|
--setopt=tsflags=nodocs \
|
||||||
--setopt=install_weak_deps=False \
|
tzdata && \
|
||||||
--setopt=keepcache=False \
|
microdnf download libcurl && \
|
||||||
--best tzdata && \
|
rpm -Uvh --nodeps --replacefiles "*curl*$( uname -i ).rpm" && \
|
||||||
|
microdnf remove -y libcurl-minimal && \
|
||||||
|
rm -rf "*curl*$( uname -i ).rpm" && \
|
||||||
groupadd \
|
groupadd \
|
||||||
--system \
|
--system \
|
||||||
--gid 1995 \
|
--gid 1995 \
|
||||||
@ -119,7 +127,7 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
|||||||
chown --quiet -R zabbix:root /etc/zabbix/ /var/lib/zabbix/ && \
|
chown --quiet -R zabbix:root /etc/zabbix/ /var/lib/zabbix/ && \
|
||||||
chgrp -R 0 /etc/zabbix/ /var/lib/zabbix/ && \
|
chgrp -R 0 /etc/zabbix/ /var/lib/zabbix/ && \
|
||||||
chmod -R g=u /etc/zabbix/ /var/lib/zabbix/ && \
|
chmod -R g=u /etc/zabbix/ /var/lib/zabbix/ && \
|
||||||
dnf -y clean all
|
microdnf -y clean all
|
||||||
|
|
||||||
EXPOSE 10051/TCP
|
EXPOSE 10051/TCP
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
FROM quay.io/centos/centos:stream8
|
FROM quay.io/centos/centos:stream9-minimal
|
||||||
|
|
||||||
ARG MAJOR_VERSION=6.0
|
ARG MAJOR_VERSION=6.0
|
||||||
ARG ZBX_VERSION=${MAJOR_VERSION}.36
|
ARG ZBX_VERSION=${MAJOR_VERSION}.36
|
||||||
@ -23,23 +23,18 @@ STOPSIGNAL SIGTERM
|
|||||||
|
|
||||||
RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
||||||
set -eux && \
|
set -eux && \
|
||||||
REPOLIST="baseos,appstream" && \
|
|
||||||
INSTALL_PKGS="bash \
|
INSTALL_PKGS="bash \
|
||||||
|
tzdata \
|
||||||
|
shadow-utils \
|
||||||
net-snmp" && \
|
net-snmp" && \
|
||||||
dnf -y install \
|
microdnf -y install \
|
||||||
--disablerepo "*" \
|
|
||||||
--enablerepo "${REPOLIST}" \
|
|
||||||
--setopt=tsflags=nodocs \
|
|
||||||
--setopt=install_weak_deps=False \
|
|
||||||
--setopt=keepcache=False \
|
|
||||||
--best ${INSTALL_PKGS} && \
|
|
||||||
dnf -y reinstall \
|
|
||||||
--disablerepo "*" \
|
--disablerepo "*" \
|
||||||
--enablerepo "baseos" \
|
--enablerepo "baseos" \
|
||||||
--setopt=tsflags=nodocs \
|
--enablerepo "appstream" \
|
||||||
--setopt=install_weak_deps=False \
|
--setopt=install_weak_deps=0 \
|
||||||
--setopt=keepcache=False \
|
--setopt=keepcache=0 \
|
||||||
--best tzdata && \
|
--best \
|
||||||
|
--nodocs ${INSTALL_PKGS} && \
|
||||||
groupadd \
|
groupadd \
|
||||||
--system \
|
--system \
|
||||||
--gid 1995 \
|
--gid 1995 \
|
||||||
@ -59,7 +54,7 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
|||||||
chown --quiet -R zabbix:root /etc/snmp/ /var/lib/zabbix/ /var/tmp/ /var/run/ && \
|
chown --quiet -R zabbix:root /etc/snmp/ /var/lib/zabbix/ /var/tmp/ /var/run/ && \
|
||||||
chgrp -R 0 /etc/snmp/ /var/lib/zabbix/ /var/tmp/ /var/run/ && \
|
chgrp -R 0 /etc/snmp/ /var/lib/zabbix/ /var/tmp/ /var/run/ && \
|
||||||
chmod -R g=u /etc/snmp/ /var/lib/zabbix/ /var/tmp/ /var/run/ && \
|
chmod -R g=u /etc/snmp/ /var/lib/zabbix/ /var/tmp/ /var/run/ && \
|
||||||
dnf -y clean all
|
microdnf -y clean all
|
||||||
|
|
||||||
EXPOSE 1162/UDP
|
EXPOSE 1162/UDP
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ ARG BUILD_BASE_IMAGE=zabbix-build-mysql:centos-${ZBX_VERSION}
|
|||||||
|
|
||||||
FROM ${BUILD_BASE_IMAGE} AS builder
|
FROM ${BUILD_BASE_IMAGE} AS builder
|
||||||
|
|
||||||
FROM quay.io/centos/centos:stream8
|
FROM quay.io/centos/centos:stream9-minimal
|
||||||
|
|
||||||
ARG MAJOR_VERSION
|
ARG MAJOR_VERSION
|
||||||
ARG ZBX_VERSION
|
ARG ZBX_VERSION
|
||||||
@ -31,9 +31,8 @@ COPY ["conf/etc/", "/etc/"]
|
|||||||
|
|
||||||
RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
||||||
set -eux && \
|
set -eux && \
|
||||||
REPOLIST="baseos,appstream,epel" && \
|
|
||||||
INSTALL_PKGS="bash \
|
INSTALL_PKGS="bash \
|
||||||
curl \
|
curl-minimal \
|
||||||
httpd \
|
httpd \
|
||||||
mysql \
|
mysql \
|
||||||
mod_ssl \
|
mod_ssl \
|
||||||
@ -48,35 +47,37 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
|||||||
php-xml \
|
php-xml \
|
||||||
findutils \
|
findutils \
|
||||||
glibc-locale-source \
|
glibc-locale-source \
|
||||||
|
shadow-utils \
|
||||||
supervisor" && \
|
supervisor" && \
|
||||||
dnf -y install \
|
microdnf -y module enable \
|
||||||
--disablerepo "*" \
|
|
||||||
--enablerepo "extras" \
|
|
||||||
--setopt=tsflags=nodocs \
|
|
||||||
--setopt=install_weak_deps=False \
|
|
||||||
--setopt=keepcache=False \
|
|
||||||
--best epel-release && \
|
|
||||||
dnf -y module enable \
|
|
||||||
--disablerepo "*" \
|
--disablerepo "*" \
|
||||||
--enablerepo "appstream" \
|
--enablerepo "appstream" \
|
||||||
--setopt=tsflags=nodocs \
|
--setopt=install_weak_deps=0 \
|
||||||
--setopt=install_weak_deps=False \
|
--setopt=keepcache=0 \
|
||||||
--setopt=keepcache=False \
|
php:8.2 && \
|
||||||
mysql php:8.2 && \
|
microdnf -y install \
|
||||||
dnf -y install \
|
|
||||||
--disablerepo "*" \
|
--disablerepo "*" \
|
||||||
--enablerepo "${REPOLIST}" \
|
--enablerepo "extras-common" \
|
||||||
--setopt=tsflags=nodocs \
|
--setopt=install_weak_deps=0 \
|
||||||
--setopt=install_weak_deps=False \
|
--setopt=keepcache=0 \
|
||||||
--setopt=keepcache=False \
|
--best \
|
||||||
--best ${INSTALL_PKGS} && \
|
--nodocs epel-release && \
|
||||||
dnf -y reinstall \
|
microdnf -y install \
|
||||||
--disablerepo "*" \
|
--disablerepo "*" \
|
||||||
--enablerepo "baseos" \
|
--enablerepo "baseos" \
|
||||||
|
--enablerepo "appstream" \
|
||||||
|
--enablerepo="epel" \
|
||||||
|
--setopt=install_weak_deps=0 \
|
||||||
|
--setopt=keepcache=0 \
|
||||||
|
--best \
|
||||||
|
--nodocs ${INSTALL_PKGS} && \
|
||||||
|
microdnf -y reinstall \
|
||||||
|
--enablerepo "baseos" \
|
||||||
|
--setopt=install_weak_deps=0 \
|
||||||
|
--setopt=keepcache=0 \
|
||||||
|
--best \
|
||||||
--setopt=tsflags=nodocs \
|
--setopt=tsflags=nodocs \
|
||||||
--setopt=install_weak_deps=False \
|
tzdata && \
|
||||||
--setopt=keepcache=False \
|
|
||||||
--best tzdata && \
|
|
||||||
groupadd \
|
groupadd \
|
||||||
--system \
|
--system \
|
||||||
--gid 1995 \
|
--gid 1995 \
|
||||||
@ -120,10 +121,10 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
|||||||
chown --quiet -R zabbix:root /run/httpd/ /var/lib/php/session/ && \
|
chown --quiet -R zabbix:root /run/httpd/ /var/lib/php/session/ && \
|
||||||
chgrp -R 0 /run/httpd/ /var/lib/php/session/ && \
|
chgrp -R 0 /run/httpd/ /var/lib/php/session/ && \
|
||||||
chmod -R g=u /run/httpd/ /var/lib/php/session/ && \
|
chmod -R g=u /run/httpd/ /var/lib/php/session/ && \
|
||||||
dnf -y remove \
|
microdnf -y remove \
|
||||||
findutils \
|
findutils \
|
||||||
glibc-locale-source && \
|
glibc-locale-source && \
|
||||||
dnf -y clean all
|
microdnf -y clean all
|
||||||
|
|
||||||
EXPOSE 8080/TCP 8443/TCP
|
EXPOSE 8080/TCP 8443/TCP
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ ARG BUILD_BASE_IMAGE=zabbix-build-mysql:centos-${ZBX_VERSION}
|
|||||||
|
|
||||||
FROM ${BUILD_BASE_IMAGE} AS builder
|
FROM ${BUILD_BASE_IMAGE} AS builder
|
||||||
|
|
||||||
FROM quay.io/centos/centos:stream8
|
FROM quay.io/centos/centos:stream9-minimal
|
||||||
|
|
||||||
ARG MAJOR_VERSION
|
ARG MAJOR_VERSION
|
||||||
ARG ZBX_VERSION
|
ARG ZBX_VERSION
|
||||||
@ -31,9 +31,8 @@ COPY ["conf/etc/", "/etc/"]
|
|||||||
|
|
||||||
RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
||||||
set -eux && \
|
set -eux && \
|
||||||
REPOLIST="baseos,appstream,epel" && \
|
|
||||||
INSTALL_PKGS="bash \
|
INSTALL_PKGS="bash \
|
||||||
curl \
|
curl-minimal \
|
||||||
httpd \
|
httpd \
|
||||||
mod_ssl \
|
mod_ssl \
|
||||||
php \
|
php \
|
||||||
@ -48,35 +47,37 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
|||||||
postgresql \
|
postgresql \
|
||||||
findutils \
|
findutils \
|
||||||
glibc-locale-source \
|
glibc-locale-source \
|
||||||
|
shadow-utils \
|
||||||
supervisor" && \
|
supervisor" && \
|
||||||
dnf -y install \
|
microdnf -y install \
|
||||||
--disablerepo "*" \
|
--disablerepo "*" \
|
||||||
--enablerepo "extras" \
|
--enablerepo "extras-common" \
|
||||||
--setopt=tsflags=nodocs \
|
--setopt=install_weak_deps=0 \
|
||||||
--setopt=install_weak_deps=False \
|
--setopt=keepcache=0 \
|
||||||
--setopt=keepcache=False \
|
--best \
|
||||||
--best epel-release && \
|
--nodocs epel-release && \
|
||||||
dnf -y module enable \
|
microdnf -y module enable \
|
||||||
--disablerepo "*" \
|
--disablerepo "*" \
|
||||||
--enablerepo "appstream" \
|
--enablerepo "appstream" \
|
||||||
--setopt=tsflags=nodocs \
|
--setopt=install_weak_deps=0 \
|
||||||
--setopt=install_weak_deps=False \
|
--setopt=keepcache=0 \
|
||||||
--setopt=keepcache=False \
|
php:8.2 \
|
||||||
postgresql:16 php:8.2 && \
|
postgresql:16 && \
|
||||||
dnf -y install \
|
microdnf -y install \
|
||||||
--disablerepo "*" \
|
|
||||||
--enablerepo "${REPOLIST}" \
|
|
||||||
--setopt=tsflags=nodocs \
|
|
||||||
--setopt=install_weak_deps=False \
|
|
||||||
--setopt=keepcache=False \
|
|
||||||
--best ${INSTALL_PKGS} && \
|
|
||||||
dnf -y reinstall \
|
|
||||||
--disablerepo "*" \
|
--disablerepo "*" \
|
||||||
--enablerepo "baseos" \
|
--enablerepo "baseos" \
|
||||||
--setopt=tsflags=nodocs \
|
--enablerepo "appstream" \
|
||||||
--setopt=install_weak_deps=False \
|
--enablerepo="epel" \
|
||||||
--setopt=keepcache=False \
|
--setopt=install_weak_deps=0 \
|
||||||
|
--setopt=keepcache=0 \
|
||||||
--best \
|
--best \
|
||||||
|
--nodocs ${INSTALL_PKGS} && \
|
||||||
|
microdnf -y reinstall \
|
||||||
|
--enablerepo "baseos" \
|
||||||
|
--setopt=install_weak_deps=0 \
|
||||||
|
--setopt=keepcache=0 \
|
||||||
|
--best \
|
||||||
|
--setopt=tsflags=nodocs \
|
||||||
tzdata && \
|
tzdata && \
|
||||||
groupadd \
|
groupadd \
|
||||||
--system \
|
--system \
|
||||||
@ -121,10 +122,10 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
|||||||
chown --quiet -R zabbix:root /run/httpd/ /var/lib/php/session/ && \
|
chown --quiet -R zabbix:root /run/httpd/ /var/lib/php/session/ && \
|
||||||
chgrp -R 0 /run/httpd/ /var/lib/php/session/ && \
|
chgrp -R 0 /run/httpd/ /var/lib/php/session/ && \
|
||||||
chmod -R g=u /run/httpd/ /var/lib/php/session/ && \
|
chmod -R g=u /run/httpd/ /var/lib/php/session/ && \
|
||||||
dnf -y remove \
|
microdnf -y remove \
|
||||||
findutils \
|
findutils \
|
||||||
glibc-locale-source && \
|
glibc-locale-source && \
|
||||||
dnf -y clean all
|
microdnf -y clean all
|
||||||
|
|
||||||
EXPOSE 8080/TCP 8443/TCP
|
EXPOSE 8080/TCP 8443/TCP
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ ARG BUILD_BASE_IMAGE=zabbix-build-mysql:centos-${ZBX_VERSION}
|
|||||||
|
|
||||||
FROM ${BUILD_BASE_IMAGE} AS builder
|
FROM ${BUILD_BASE_IMAGE} AS builder
|
||||||
|
|
||||||
FROM quay.io/centos/centos:stream8
|
FROM quay.io/centos/centos:stream9-minimal
|
||||||
|
|
||||||
ARG MAJOR_VERSION
|
ARG MAJOR_VERSION
|
||||||
ARG ZBX_VERSION
|
ARG ZBX_VERSION
|
||||||
@ -31,9 +31,8 @@ COPY ["conf/etc/", "/etc/"]
|
|||||||
|
|
||||||
RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
||||||
set -eux && \
|
set -eux && \
|
||||||
REPOLIST="baseos,appstream,epel" && \
|
|
||||||
INSTALL_PKGS="bash \
|
INSTALL_PKGS="bash \
|
||||||
curl \
|
curl-minimal \
|
||||||
mysql \
|
mysql \
|
||||||
nginx \
|
nginx \
|
||||||
php-bcmath \
|
php-bcmath \
|
||||||
@ -46,35 +45,37 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
|||||||
php-xml \
|
php-xml \
|
||||||
findutils \
|
findutils \
|
||||||
glibc-locale-source \
|
glibc-locale-source \
|
||||||
|
shadow-utils \
|
||||||
supervisor" && \
|
supervisor" && \
|
||||||
dnf -y install \
|
microdnf -y module enable \
|
||||||
--disablerepo "*" \
|
|
||||||
--enablerepo "extras" \
|
|
||||||
--setopt=tsflags=nodocs \
|
|
||||||
--setopt=install_weak_deps=False \
|
|
||||||
--setopt=keepcache=False \
|
|
||||||
--best epel-release && \
|
|
||||||
dnf -y module enable \
|
|
||||||
--disablerepo "*" \
|
--disablerepo "*" \
|
||||||
--enablerepo "appstream" \
|
--enablerepo "appstream" \
|
||||||
--setopt=tsflags=nodocs \
|
--setopt=install_weak_deps=0 \
|
||||||
--setopt=install_weak_deps=False \
|
--setopt=keepcache=0 \
|
||||||
--setopt=keepcache=False \
|
php:8.2 && \
|
||||||
mysql php:8.2 nginx:1.24 && \
|
microdnf -y install \
|
||||||
dnf -y install \
|
|
||||||
--disablerepo "*" \
|
--disablerepo "*" \
|
||||||
--enablerepo "${REPOLIST}" \
|
--enablerepo "extras-common" \
|
||||||
--setopt=tsflags=nodocs \
|
--setopt=install_weak_deps=0 \
|
||||||
--setopt=install_weak_deps=False \
|
--setopt=keepcache=0 \
|
||||||
--setopt=keepcache=False \
|
--best \
|
||||||
--best ${INSTALL_PKGS} && \
|
--nodocs epel-release && \
|
||||||
dnf -y reinstall \
|
microdnf -y install \
|
||||||
--disablerepo "*" \
|
--disablerepo "*" \
|
||||||
--enablerepo "baseos" \
|
--enablerepo "baseos" \
|
||||||
|
--enablerepo "appstream" \
|
||||||
|
--enablerepo="epel" \
|
||||||
|
--setopt=install_weak_deps=0 \
|
||||||
|
--setopt=keepcache=0 \
|
||||||
|
--best \
|
||||||
|
--nodocs ${INSTALL_PKGS} && \
|
||||||
|
microdnf -y reinstall \
|
||||||
|
--enablerepo "baseos" \
|
||||||
|
--setopt=install_weak_deps=0 \
|
||||||
|
--setopt=keepcache=0 \
|
||||||
|
--best \
|
||||||
--setopt=tsflags=nodocs \
|
--setopt=tsflags=nodocs \
|
||||||
--setopt=install_weak_deps=False \
|
tzdata && \
|
||||||
--setopt=keepcache=False \
|
|
||||||
--best tzdata && \
|
|
||||||
groupadd \
|
groupadd \
|
||||||
--system \
|
--system \
|
||||||
--gid 1995 \
|
--gid 1995 \
|
||||||
@ -115,10 +116,10 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
|||||||
chown --quiet -R zabbix:root /var/lib/php/session/ && \
|
chown --quiet -R zabbix:root /var/lib/php/session/ && \
|
||||||
chgrp -R 0 /var/lib/php/session/ && \
|
chgrp -R 0 /var/lib/php/session/ && \
|
||||||
chmod -R g=u /var/lib/php/session/ && \
|
chmod -R g=u /var/lib/php/session/ && \
|
||||||
dnf -y remove \
|
microdnf -y remove \
|
||||||
findutils \
|
findutils \
|
||||||
glibc-locale-source && \
|
glibc-locale-source && \
|
||||||
dnf -y clean all
|
microdnf -y clean all
|
||||||
|
|
||||||
EXPOSE 8080/TCP 8443/TCP
|
EXPOSE 8080/TCP 8443/TCP
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ ARG BUILD_BASE_IMAGE=zabbix-build-pgsql:centos-${ZBX_VERSION}
|
|||||||
|
|
||||||
FROM ${BUILD_BASE_IMAGE} AS builder
|
FROM ${BUILD_BASE_IMAGE} AS builder
|
||||||
|
|
||||||
FROM quay.io/centos/centos:stream8
|
FROM quay.io/centos/centos:stream9-minimal
|
||||||
|
|
||||||
ARG MAJOR_VERSION
|
ARG MAJOR_VERSION
|
||||||
ARG ZBX_VERSION
|
ARG ZBX_VERSION
|
||||||
@ -31,9 +31,8 @@ COPY ["conf/etc/", "/etc/"]
|
|||||||
|
|
||||||
RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
||||||
set -eux && \
|
set -eux && \
|
||||||
REPOLIST="baseos,appstream,epel" && \
|
|
||||||
INSTALL_PKGS="bash \
|
INSTALL_PKGS="bash \
|
||||||
curl \
|
curl-minimal \
|
||||||
findutils \
|
findutils \
|
||||||
glibc-locale-source \
|
glibc-locale-source \
|
||||||
nginx \
|
nginx \
|
||||||
@ -46,35 +45,38 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
|||||||
php-pgsql \
|
php-pgsql \
|
||||||
php-xml \
|
php-xml \
|
||||||
postgresql \
|
postgresql \
|
||||||
|
shadow-utils \
|
||||||
supervisor" && \
|
supervisor" && \
|
||||||
dnf -y install \
|
microdnf -y install \
|
||||||
--disablerepo "*" \
|
--disablerepo "*" \
|
||||||
--enablerepo "extras" \
|
--enablerepo "extras-common" \
|
||||||
--setopt=tsflags=nodocs \
|
--setopt=install_weak_deps=0 \
|
||||||
--setopt=install_weak_deps=False \
|
--setopt=keepcache=0 \
|
||||||
--setopt=keepcache=False \
|
--best \
|
||||||
--best epel-release && \
|
--nodocs epel-release && \
|
||||||
dnf -y module enable \
|
microdnf -y module enable \
|
||||||
--disablerepo "*" \
|
--disablerepo "*" \
|
||||||
--enablerepo "appstream" \
|
--enablerepo "appstream" \
|
||||||
--setopt=tsflags=nodocs \
|
--setopt=install_weak_deps=0 \
|
||||||
--setopt=install_weak_deps=False \
|
--setopt=keepcache=0 \
|
||||||
--setopt=keepcache=False \
|
php:8.2 \
|
||||||
postgresql:16 php:8.2 nginx:1.24 && \
|
postgresql:16 && \
|
||||||
dnf -y install \
|
microdnf -y install \
|
||||||
--disablerepo "*" \
|
|
||||||
--enablerepo "${REPOLIST}" \
|
|
||||||
--setopt=tsflags=nodocs \
|
|
||||||
--setopt=install_weak_deps=False \
|
|
||||||
--setopt=keepcache=False \
|
|
||||||
--best ${INSTALL_PKGS} && \
|
|
||||||
dnf -y reinstall \
|
|
||||||
--disablerepo "*" \
|
--disablerepo "*" \
|
||||||
--enablerepo "baseos" \
|
--enablerepo "baseos" \
|
||||||
|
--enablerepo "appstream" \
|
||||||
|
--enablerepo="epel" \
|
||||||
|
--setopt=install_weak_deps=0 \
|
||||||
|
--setopt=keepcache=0 \
|
||||||
|
--best \
|
||||||
|
--nodocs ${INSTALL_PKGS} && \
|
||||||
|
microdnf -y reinstall \
|
||||||
|
--enablerepo "baseos" \
|
||||||
|
--setopt=install_weak_deps=0 \
|
||||||
|
--setopt=keepcache=0 \
|
||||||
|
--best \
|
||||||
--setopt=tsflags=nodocs \
|
--setopt=tsflags=nodocs \
|
||||||
--setopt=install_weak_deps=False \
|
tzdata && \
|
||||||
--setopt=keepcache=False \
|
|
||||||
--best tzdata && \
|
|
||||||
groupadd \
|
groupadd \
|
||||||
--system \
|
--system \
|
||||||
--gid 1995 \
|
--gid 1995 \
|
||||||
@ -115,10 +117,10 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
|||||||
chown --quiet -R zabbix:root /var/lib/php/session/ && \
|
chown --quiet -R zabbix:root /var/lib/php/session/ && \
|
||||||
chgrp -R 0 /var/lib/php/session/ && \
|
chgrp -R 0 /var/lib/php/session/ && \
|
||||||
chmod -R g=u /var/lib/php/session/ && \
|
chmod -R g=u /var/lib/php/session/ && \
|
||||||
dnf -y remove \
|
microdnf -y remove \
|
||||||
findutils \
|
findutils \
|
||||||
glibc-locale-source && \
|
glibc-locale-source && \
|
||||||
dnf -y clean all
|
microdnf -y clean all
|
||||||
|
|
||||||
EXPOSE 8080/TCP 8443/TCP
|
EXPOSE 8080/TCP 8443/TCP
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ ARG BUILD_BASE_IMAGE=zabbix-build-mysql:centos-${ZBX_VERSION}
|
|||||||
|
|
||||||
FROM ${BUILD_BASE_IMAGE} AS builder
|
FROM ${BUILD_BASE_IMAGE} AS builder
|
||||||
|
|
||||||
FROM quay.io/centos/centos:stream8
|
FROM quay.io/centos/centos:stream9-minimal
|
||||||
|
|
||||||
ARG MAJOR_VERSION
|
ARG MAJOR_VERSION
|
||||||
ARG ZBX_VERSION
|
ARG ZBX_VERSION
|
||||||
@ -32,30 +32,25 @@ COPY --from=builder ["/tmp/zabbix-${ZBX_VERSION}-output/web_service/conf/", "/et
|
|||||||
|
|
||||||
RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
||||||
set -eux && \
|
set -eux && \
|
||||||
REPOLIST="baseos,appstream,epel" && \
|
|
||||||
INSTALL_PKGS="bash \
|
INSTALL_PKGS="bash \
|
||||||
chromium-headless" && \
|
chromium-headless \
|
||||||
dnf -y install \
|
shadow-utils" && \
|
||||||
|
microdnf -y install \
|
||||||
--disablerepo "*" \
|
--disablerepo "*" \
|
||||||
--enablerepo "extras" \
|
--enablerepo "extras-common" \
|
||||||
--setopt=tsflags=nodocs \
|
--setopt=install_weak_deps=0 \
|
||||||
--setopt=install_weak_deps=False \
|
--setopt=keepcache=0 \
|
||||||
--setopt=keepcache=False \
|
--best \
|
||||||
--best epel-release && \
|
--nodocs epel-release && \
|
||||||
dnf -y install \
|
microdnf -y install \
|
||||||
--disablerepo "*" \
|
|
||||||
--enablerepo "${REPOLIST}" \
|
|
||||||
--setopt=tsflags=nodocs \
|
|
||||||
--setopt=install_weak_deps=False \
|
|
||||||
--setopt=keepcache=False \
|
|
||||||
--best ${INSTALL_PKGS} && \
|
|
||||||
dnf -y reinstall \
|
|
||||||
--disablerepo "*" \
|
--disablerepo "*" \
|
||||||
--enablerepo "baseos" \
|
--enablerepo "baseos" \
|
||||||
--setopt=tsflags=nodocs \
|
--enablerepo "appstream" \
|
||||||
--setopt=install_weak_deps=False \
|
--enablerepo="epel" \
|
||||||
--setopt=keepcache=False \
|
--setopt=install_weak_deps=0 \
|
||||||
--best tzdata && \
|
--setopt=keepcache=0 \
|
||||||
|
--best \
|
||||||
|
--nodocs ${INSTALL_PKGS} && \
|
||||||
groupadd \
|
groupadd \
|
||||||
--system \
|
--system \
|
||||||
--gid 1995 \
|
--gid 1995 \
|
||||||
@ -75,7 +70,7 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
|||||||
chown --quiet -R zabbix:root /etc/zabbix/ /var/lib/zabbix/ && \
|
chown --quiet -R zabbix:root /etc/zabbix/ /var/lib/zabbix/ && \
|
||||||
chgrp -R 0 /etc/zabbix/ /var/lib/zabbix/ && \
|
chgrp -R 0 /etc/zabbix/ /var/lib/zabbix/ && \
|
||||||
chmod -R g=u /etc/zabbix/ /var/lib/zabbix/ && \
|
chmod -R g=u /etc/zabbix/ /var/lib/zabbix/ && \
|
||||||
dnf -y clean all
|
microdnf -y clean all
|
||||||
|
|
||||||
EXPOSE 10053/TCP
|
EXPOSE 10053/TCP
|
||||||
|
|
||||||
|
@ -8,6 +8,11 @@
|
|||||||
"linux/s390x",
|
"linux/s390x",
|
||||||
"linux/ppc64le"
|
"linux/ppc64le"
|
||||||
],
|
],
|
||||||
|
"centos": [
|
||||||
|
"linux/amd64",
|
||||||
|
"linux/arm64",
|
||||||
|
"linux/ppc64le"
|
||||||
|
],
|
||||||
"ol": [
|
"ol": [
|
||||||
"linux/amd64",
|
"linux/amd64",
|
||||||
"linux/arm64"
|
"linux/arm64"
|
||||||
|
Loading…
Reference in New Issue
Block a user