mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2025-06-19 08:17:34 +02:00
Added caching / avoid orphans mechanisms
This commit is contained in:
commit
f45015f6de
@ -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:stream9
|
FROM quay.io/centos/centos:stream9-minimal
|
||||||
|
|
||||||
ARG MAJOR_VERSION
|
ARG MAJOR_VERSION
|
||||||
ARG ZBX_VERSION
|
ARG ZBX_VERSION
|
||||||
@ -33,7 +33,6 @@ COPY --from=builder ["/tmp/zabbix-${ZBX_VERSION}/conf/zabbix_agentd.conf", "/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 \
|
||||||
tzdata \
|
tzdata \
|
||||||
iputils \
|
iputils \
|
||||||
@ -41,15 +40,24 @@ 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 epel-release && \
|
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 \
|
||||||
--best \
|
--best \
|
||||||
${INSTALL_PKGS} && \
|
--nodocs epel-release && \
|
||||||
|
microdnf -y install \
|
||||||
|
--disablerepo "*" \
|
||||||
|
--enablerepo "baseos" \
|
||||||
|
--enablerepo "appstream" \
|
||||||
|
--enablerepo="epel" \
|
||||||
|
--setopt=install_weak_deps=0 \
|
||||||
|
--setopt=keepcache=0 \
|
||||||
|
--best \
|
||||||
|
--nodocs ${INSTALL_PKGS} && \
|
||||||
groupadd \
|
groupadd \
|
||||||
--system \
|
--system \
|
||||||
--gid 1995 \
|
--gid 1995 \
|
||||||
@ -69,7 +77,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:stream9
|
FROM quay.io/centos/centos:stream9-minimal
|
||||||
|
|
||||||
ARG MAJOR_VERSION
|
ARG MAJOR_VERSION
|
||||||
ARG ZBX_VERSION
|
ARG ZBX_VERSION
|
||||||
@ -38,7 +38,6 @@ COPY --from=builder ["/tmp/postgresql_plugin/zabbix-agent2-plugin-postgresql", "
|
|||||||
|
|
||||||
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 \
|
||||||
tzdata \
|
tzdata \
|
||||||
iputils \
|
iputils \
|
||||||
@ -46,16 +45,25 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
|||||||
libcurl-minimal \
|
libcurl-minimal \
|
||||||
libmodbus \
|
libmodbus \
|
||||||
smartmontools \
|
smartmontools \
|
||||||
|
shadow-utils \
|
||||||
sudo \
|
sudo \
|
||||||
openssl-libs" && \
|
openssl-libs" && \
|
||||||
dnf -y install epel-release && \
|
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 \
|
||||||
--best \
|
--best \
|
||||||
${INSTALL_PKGS} && \
|
--nodocs epel-release && \
|
||||||
|
microdnf -y install \
|
||||||
|
--disablerepo "*" \
|
||||||
|
--enablerepo "baseos" \
|
||||||
|
--enablerepo "appstream" \
|
||||||
|
--enablerepo="epel" \
|
||||||
|
--setopt=install_weak_deps=0 \
|
||||||
|
--setopt=keepcache=0 \
|
||||||
|
--best \
|
||||||
|
--nodocs ${INSTALL_PKGS} && \
|
||||||
groupadd \
|
groupadd \
|
||||||
--system \
|
--system \
|
||||||
--gid 1995 \
|
--gid 1995 \
|
||||||
@ -78,7 +86,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:stream9
|
FROM quay.io/centos/centos:stream9-minimal
|
||||||
|
|
||||||
ARG MAJOR_VERSION=7.0
|
ARG MAJOR_VERSION=7.0
|
||||||
ARG ZBX_VERSION=${MAJOR_VERSION}
|
ARG ZBX_VERSION=${MAJOR_VERSION}
|
||||||
@ -20,7 +20,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,crb,epel" && \
|
|
||||||
INSTALL_PKGS="autoconf \
|
INSTALL_PKGS="autoconf \
|
||||||
automake \
|
automake \
|
||||||
bash \
|
bash \
|
||||||
@ -46,12 +45,21 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
|||||||
gettext \
|
gettext \
|
||||||
go-toolset \
|
go-toolset \
|
||||||
unixODBC-devel" && \
|
unixODBC-devel" && \
|
||||||
dnf -y install epel-release && \
|
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 \
|
||||||
--best \
|
--best \
|
||||||
${INSTALL_PKGS} && \
|
--nodocs epel-release && \
|
||||||
dnf -y clean all
|
microdnf -y install \
|
||||||
|
--disablerepo "*" \
|
||||||
|
--enablerepo "baseos" \
|
||||||
|
--enablerepo "appstream" \
|
||||||
|
--enablerepo "crb" \
|
||||||
|
--enablerepo="epel" \
|
||||||
|
--setopt=install_weak_deps=0 \
|
||||||
|
--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:stream9
|
FROM quay.io/centos/centos:stream9-minimal
|
||||||
|
|
||||||
ARG MAJOR_VERSION
|
ARG MAJOR_VERSION
|
||||||
ARG ZBX_VERSION
|
ARG ZBX_VERSION
|
||||||
@ -31,17 +31,18 @@ COPY --from=builder ["/tmp/zabbix-${ZBX_VERSION}/src/zabbix_java/lib", "/usr/sbi
|
|||||||
|
|
||||||
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=0 \
|
||||||
--best \
|
--best \
|
||||||
${INSTALL_PKGS} && \
|
--nodocs ${INSTALL_PKGS} && \
|
||||||
groupadd \
|
groupadd \
|
||||||
--system \
|
--system \
|
||||||
--gid 1995 \
|
--gid 1995 \
|
||||||
@ -62,7 +63,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:stream9
|
FROM quay.io/centos/centos:stream9-minimal
|
||||||
|
|
||||||
ARG MAJOR_VERSION
|
ARG MAJOR_VERSION
|
||||||
ARG ZBX_VERSION
|
ARG ZBX_VERSION
|
||||||
@ -36,7 +36,6 @@ COPY --from=builder ["/tmp/zabbix-${ZBX_VERSION}/database/mysql/create_proxy.sql
|
|||||||
|
|
||||||
RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
||||||
set -eux && \
|
set -eux && \
|
||||||
REPOLIST="baseos,appstream,crb,epel" && \
|
|
||||||
INSTALL_PKGS="libevent \
|
INSTALL_PKGS="libevent \
|
||||||
traceroute \
|
traceroute \
|
||||||
nmap \
|
nmap \
|
||||||
@ -52,16 +51,26 @@ 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 epel-release && \
|
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 \
|
||||||
--best \
|
--best \
|
||||||
${INSTALL_PKGS} && \
|
--nodocs epel-release && \
|
||||||
|
microdnf -y install \
|
||||||
|
--disablerepo "*" \
|
||||||
|
--enablerepo "baseos" \
|
||||||
|
--enablerepo "appstream" \
|
||||||
|
--enablerepo "crb" \
|
||||||
|
--enablerepo="epel" \
|
||||||
|
--setopt=install_weak_deps=0 \
|
||||||
|
--setopt=keepcache=0 \
|
||||||
|
--best \
|
||||||
|
--nodocs ${INSTALL_PKGS} && \
|
||||||
groupadd \
|
groupadd \
|
||||||
--system \
|
--system \
|
||||||
--gid 1995 \
|
--gid 1995 \
|
||||||
@ -92,7 +101,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:stream9
|
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}/conf/zabbix_proxy.conf", "/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="libevent \
|
INSTALL_PKGS="libevent \
|
||||||
traceroute \
|
traceroute \
|
||||||
nmap \
|
nmap \
|
||||||
@ -48,16 +47,25 @@ 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 epel-release && \
|
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 \
|
||||||
--best \
|
--best \
|
||||||
${INSTALL_PKGS} && \
|
--nodocs epel-release && \
|
||||||
|
microdnf -y install \
|
||||||
|
--disablerepo "*" \
|
||||||
|
--enablerepo "baseos" \
|
||||||
|
--enablerepo "appstream" \
|
||||||
|
--enablerepo="epel" \
|
||||||
|
--setopt=install_weak_deps=0 \
|
||||||
|
--setopt=keepcache=0 \
|
||||||
|
--best \
|
||||||
|
--nodocs ${INSTALL_PKGS} && \
|
||||||
groupadd \
|
groupadd \
|
||||||
--system \
|
--system \
|
||||||
--gid 1995 \
|
--gid 1995 \
|
||||||
@ -88,7 +96,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:stream9
|
FROM quay.io/centos/centos:stream9-minimal
|
||||||
|
|
||||||
ARG MAJOR_VERSION
|
ARG MAJOR_VERSION
|
||||||
ARG ZBX_VERSION
|
ARG ZBX_VERSION
|
||||||
@ -36,7 +36,6 @@ COPY --from=builder ["/tmp/zabbix-${ZBX_VERSION}/database/mysql/create_server.sq
|
|||||||
|
|
||||||
RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
||||||
set -eux && \
|
set -eux && \
|
||||||
REPOLIST="baseos,appstream,crb,epel" && \
|
|
||||||
INSTALL_PKGS="fping \
|
INSTALL_PKGS="fping \
|
||||||
traceroute \
|
traceroute \
|
||||||
nmap \
|
nmap \
|
||||||
@ -44,9 +43,13 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
|||||||
tzdata \
|
tzdata \
|
||||||
iputils \
|
iputils \
|
||||||
traceroute \
|
traceroute \
|
||||||
|
libpsl \
|
||||||
|
libbrotli \
|
||||||
libevent \
|
libevent \
|
||||||
libxml2 \
|
|
||||||
libssh \
|
libssh \
|
||||||
|
libpsl \
|
||||||
|
libbrotli \
|
||||||
|
libxml2 \
|
||||||
mysql \
|
mysql \
|
||||||
mysql-libs \
|
mysql-libs \
|
||||||
net-snmp-libs \
|
net-snmp-libs \
|
||||||
@ -54,25 +57,31 @@ 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 epel-release && \
|
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 \
|
||||||
--best \
|
--best \
|
||||||
${INSTALL_PKGS} && \
|
--nodocs epel-release && \
|
||||||
dnf -y install \
|
microdnf -y install \
|
||||||
--disablerepo "*" \
|
--disablerepo "*" \
|
||||||
--enablerepo "${REPOLIST}" \
|
--enablerepo "baseos" \
|
||||||
--setopt=tsflags=nodocs \
|
--enablerepo "appstream" \
|
||||||
--setopt=install_weak_deps=False \
|
--enablerepo "crb" \
|
||||||
--allowerasing \
|
--enablerepo="epel" \
|
||||||
|
--setopt=install_weak_deps=0 \
|
||||||
|
--setopt=keepcache=0 \
|
||||||
--best \
|
--best \
|
||||||
libcurl && \
|
--nodocs ${INSTALL_PKGS} && \
|
||||||
|
microdnf download libcurl && \
|
||||||
|
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 \
|
||||||
@ -108,7 +117,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:stream9
|
FROM quay.io/centos/centos:stream9-minimal
|
||||||
|
|
||||||
ARG MAJOR_VERSION
|
ARG MAJOR_VERSION
|
||||||
ARG ZBX_VERSION
|
ARG ZBX_VERSION
|
||||||
@ -39,7 +39,6 @@ COPY --from=builder ["/tmp/zabbix-${ZBX_VERSION}/database/postgresql/timescaledb
|
|||||||
|
|
||||||
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 \
|
file-libs \
|
||||||
traceroute \
|
traceroute \
|
||||||
@ -49,6 +48,8 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
|||||||
traceroute \
|
traceroute \
|
||||||
libevent \
|
libevent \
|
||||||
libssh \
|
libssh \
|
||||||
|
libpsl \
|
||||||
|
libbrotli \
|
||||||
libxml2 \
|
libxml2 \
|
||||||
net-snmp-libs \
|
net-snmp-libs \
|
||||||
OpenIPMI-libs \
|
OpenIPMI-libs \
|
||||||
@ -57,25 +58,30 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
|||||||
pcre2 \
|
pcre2 \
|
||||||
postgresql \
|
postgresql \
|
||||||
postgresql-libs \
|
postgresql-libs \
|
||||||
|
shadow-utils \
|
||||||
zlib \
|
zlib \
|
||||||
gzip \
|
gzip \
|
||||||
unixODBC" && \
|
unixODBC" && \
|
||||||
dnf -y install epel-release && \
|
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 \
|
||||||
--best \
|
--best \
|
||||||
${INSTALL_PKGS} && \
|
--nodocs epel-release && \
|
||||||
dnf -y install \
|
microdnf -y install \
|
||||||
--disablerepo "*" \
|
--disablerepo "*" \
|
||||||
--enablerepo "${REPOLIST}" \
|
--enablerepo "baseos" \
|
||||||
--setopt=tsflags=nodocs \
|
--enablerepo "appstream" \
|
||||||
--setopt=install_weak_deps=False \
|
--enablerepo="epel" \
|
||||||
--allowerasing \
|
--setopt=install_weak_deps=0 \
|
||||||
|
--setopt=keepcache=0 \
|
||||||
--best \
|
--best \
|
||||||
libcurl && \
|
--nodocs ${INSTALL_PKGS} && \
|
||||||
|
microdnf download libcurl && \
|
||||||
|
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 \
|
||||||
@ -111,7 +117,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:stream9
|
FROM quay.io/centos/centos:stream9-minimal
|
||||||
|
|
||||||
ARG MAJOR_VERSION=7.0
|
ARG MAJOR_VERSION=7.0
|
||||||
ARG ZBX_VERSION=${MAJOR_VERSION}
|
ARG ZBX_VERSION=${MAJOR_VERSION}
|
||||||
@ -23,17 +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 \
|
tzdata \
|
||||||
|
shadow-utils \
|
||||||
net-snmp" && \
|
net-snmp" && \
|
||||||
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=0 \
|
||||||
--best \
|
--best \
|
||||||
${INSTALL_PKGS} && \
|
--nodocs ${INSTALL_PKGS} && \
|
||||||
groupadd \
|
groupadd \
|
||||||
--system \
|
--system \
|
||||||
--gid 1995 \
|
--gid 1995 \
|
||||||
@ -53,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:stream9
|
FROM quay.io/centos/centos:stream9-minimal
|
||||||
|
|
||||||
ARG MAJOR_VERSION
|
ARG MAJOR_VERSION
|
||||||
ARG ZBX_VERSION
|
ARG ZBX_VERSION
|
||||||
@ -31,7 +31,6 @@ 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-minimal \
|
curl-minimal \
|
||||||
httpd \
|
httpd \
|
||||||
@ -48,15 +47,31 @@ 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 epel-release && \
|
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 \
|
||||||
--best \
|
--best \
|
||||||
${INSTALL_PKGS} && \
|
--nodocs epel-release && \
|
||||||
|
microdnf -y install \
|
||||||
|
--disablerepo "*" \
|
||||||
|
--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 \
|
||||||
|
tzdata && \
|
||||||
groupadd \
|
groupadd \
|
||||||
--system \
|
--system \
|
||||||
--gid 1995 \
|
--gid 1995 \
|
||||||
@ -100,10 +115,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:stream9
|
FROM quay.io/centos/centos:stream9-minimal
|
||||||
|
|
||||||
ARG MAJOR_VERSION
|
ARG MAJOR_VERSION
|
||||||
ARG ZBX_VERSION
|
ARG ZBX_VERSION
|
||||||
@ -31,7 +31,6 @@ 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-minimal \
|
curl-minimal \
|
||||||
httpd \
|
httpd \
|
||||||
@ -48,16 +47,31 @@ 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 epel-release && \
|
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=0 \
|
||||||
--best \
|
--best \
|
||||||
${INSTALL_PKGS} && \
|
--nodocs epel-release && \
|
||||||
|
microdnf -y install \
|
||||||
|
--disablerepo "*" \
|
||||||
|
--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 \
|
||||||
|
tzdata && \
|
||||||
groupadd \
|
groupadd \
|
||||||
--system \
|
--system \
|
||||||
--gid 1995 \
|
--gid 1995 \
|
||||||
@ -101,10 +115,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:stream9
|
FROM quay.io/centos/centos:stream9-minimal
|
||||||
|
|
||||||
ARG MAJOR_VERSION
|
ARG MAJOR_VERSION
|
||||||
ARG ZBX_VERSION
|
ARG ZBX_VERSION
|
||||||
@ -31,7 +31,6 @@ 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-minimal \
|
curl-minimal \
|
||||||
mysql \
|
mysql \
|
||||||
@ -46,15 +45,31 @@ 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 epel-release && \
|
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 \
|
||||||
--best \
|
--best \
|
||||||
${INSTALL_PKGS} && \
|
--nodocs epel-release && \
|
||||||
|
microdnf -y install \
|
||||||
|
--disablerepo "*" \
|
||||||
|
--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 \
|
||||||
|
tzdata && \
|
||||||
groupadd \
|
groupadd \
|
||||||
--system \
|
--system \
|
||||||
--gid 1995 \
|
--gid 1995 \
|
||||||
@ -95,10 +110,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:stream9
|
FROM quay.io/centos/centos:stream9-minimal
|
||||||
|
|
||||||
ARG MAJOR_VERSION
|
ARG MAJOR_VERSION
|
||||||
ARG ZBX_VERSION
|
ARG ZBX_VERSION
|
||||||
@ -31,7 +31,6 @@ 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-minimal \
|
curl-minimal \
|
||||||
findutils \
|
findutils \
|
||||||
@ -46,15 +45,31 @@ 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 epel-release && \
|
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 \
|
||||||
--best \
|
--best \
|
||||||
${INSTALL_PKGS} && \
|
--nodocs epel-release && \
|
||||||
|
microdnf -y install \
|
||||||
|
--disablerepo "*" \
|
||||||
|
--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 \
|
||||||
|
tzdata && \
|
||||||
groupadd \
|
groupadd \
|
||||||
--system \
|
--system \
|
||||||
--gid 1995 \
|
--gid 1995 \
|
||||||
@ -95,10 +110,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:stream9
|
FROM quay.io/centos/centos:stream9-minimal
|
||||||
|
|
||||||
ARG MAJOR_VERSION
|
ARG MAJOR_VERSION
|
||||||
ARG ZBX_VERSION
|
ARG ZBX_VERSION
|
||||||
@ -32,17 +32,25 @@ COPY --from=builder ["/tmp/zabbix-${ZBX_VERSION}/src/go/conf/zabbix_web_service.
|
|||||||
|
|
||||||
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 epel-release && \
|
shadow-utils" && \
|
||||||
dnf -y install \
|
microdnf -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 \
|
||||||
--best \
|
--best \
|
||||||
${INSTALL_PKGS} && \
|
--nodocs epel-release && \
|
||||||
|
microdnf -y install \
|
||||||
|
--disablerepo "*" \
|
||||||
|
--enablerepo "baseos" \
|
||||||
|
--enablerepo "appstream" \
|
||||||
|
--enablerepo="epel" \
|
||||||
|
--setopt=install_weak_deps=0 \
|
||||||
|
--setopt=keepcache=0 \
|
||||||
|
--best \
|
||||||
|
--nodocs ${INSTALL_PKGS} && \
|
||||||
groupadd \
|
groupadd \
|
||||||
--system \
|
--system \
|
||||||
--gid 1995 \
|
--gid 1995 \
|
||||||
@ -61,7 +69,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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user