mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2024-11-21 23:33:31 +01:00
1. Disable subscription-manager plugin for tzdata operations.\n2. Using secrets directory to share pki / subscription data from host\n3. Initially update tzdata, then reinstall
This commit is contained in:
parent
ca4226799b
commit
a7155b01a1
@ -53,7 +53,6 @@ COPY --from=builder ["/tmp/zabbix-${ZBX_VERSION}/conf/zabbix_agentd.conf", "/etc
|
||||
RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
||||
set -eux && \
|
||||
INSTALL_PKGS="bash \
|
||||
tzdata \
|
||||
iputils \
|
||||
shadow-utils \
|
||||
pcre2 \
|
||||
@ -63,6 +62,7 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
||||
rpm -ivh /tmp/epel-release-latest-9.noarch.rpm && \
|
||||
rm -rf /tmp/epel-release-latest-9.noarch.rpm && \
|
||||
microdnf -y install \
|
||||
--disableplugin=subscription-manager \
|
||||
--disablerepo "*" \
|
||||
--enablerepo "ubi-9-baseos-rpms" \
|
||||
--enablerepo "epel" \
|
||||
@ -71,7 +71,17 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
||||
--best \
|
||||
--setopt=tsflags=nodocs \
|
||||
${INSTALL_PKGS} && \
|
||||
microdnf -y update \
|
||||
--disableplugin=subscription-manager \
|
||||
--disablerepo "*" \
|
||||
--enablerepo "ubi-9-baseos-rpms" \
|
||||
--setopt=install_weak_deps=0 \
|
||||
--best \
|
||||
--setopt=tsflags=nodocs \
|
||||
tzdata && \
|
||||
microdnf -y reinstall \
|
||||
--disableplugin=subscription-manager \
|
||||
--disablerepo "*" \
|
||||
--enablerepo "ubi-9-baseos-rpms" \
|
||||
--setopt=install_weak_deps=0 \
|
||||
--setopt=keepcache=0 \
|
||||
|
@ -58,7 +58,6 @@ COPY --from=builder ["/tmp/postgresql_plugin/zabbix-agent2-plugin-postgresql", "
|
||||
RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
||||
set -eux && \
|
||||
INSTALL_PKGS="bash \
|
||||
tzdata \
|
||||
iputils \
|
||||
shadow-utils \
|
||||
pcre2 \
|
||||
@ -69,6 +68,7 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
||||
rpm -ivh /tmp/epel-release-latest-9.noarch.rpm && \
|
||||
rm -rf /tmp/epel-release-latest-9.noarch.rpm && \
|
||||
microdnf -y install \
|
||||
--disableplugin=subscription-manager \
|
||||
--disablerepo "*" \
|
||||
--enablerepo "ubi-9-baseos-rpms" \
|
||||
--enablerepo "epel" \
|
||||
@ -77,7 +77,17 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
||||
--best \
|
||||
--setopt=tsflags=nodocs \
|
||||
${INSTALL_PKGS} && \
|
||||
microdnf -y update \
|
||||
--disableplugin=subscription-manager \
|
||||
--disablerepo "*" \
|
||||
--enablerepo "ubi-9-baseos-rpms" \
|
||||
--setopt=install_weak_deps=0 \
|
||||
--best \
|
||||
--setopt=tsflags=nodocs \
|
||||
tzdata && \
|
||||
microdnf -y reinstall \
|
||||
--disableplugin=subscription-manager \
|
||||
--disablerepo "*" \
|
||||
--enablerepo "ubi-9-baseos-rpms" \
|
||||
--setopt=install_weak_deps=0 \
|
||||
--setopt=keepcache=0 \
|
||||
|
@ -30,6 +30,7 @@ LABEL description="Prepared environment to build Zabbix components" \
|
||||
COPY ["licenses", "/licenses"]
|
||||
|
||||
RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
||||
--mount=type=bind,target=/run/secrets/,src=secrets/ \
|
||||
set -eux && \
|
||||
INSTALL_PKGS="autoconf \
|
||||
automake \
|
||||
|
@ -55,6 +55,7 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
||||
shadow-utils \
|
||||
java-17-openjdk-headless" && \
|
||||
microdnf -y install \
|
||||
--disableplugin=subscription-manager \
|
||||
--disablerepo "*" \
|
||||
--enablerepo "ubi-9-baseos-rpms" \
|
||||
--enablerepo "ubi-9-appstream-rpms" \
|
||||
|
@ -54,6 +54,7 @@ COPY --from=builder ["/tmp/zabbix-${ZBX_VERSION}/conf/zabbix_proxy.conf", "/etc/
|
||||
COPY --from=builder ["/tmp/zabbix-${ZBX_VERSION}/database/mysql/create_proxy.sql.gz", "/usr/share/doc/zabbix-proxy-mysql/create.sql.gz"]
|
||||
|
||||
RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
||||
--mount=type=bind,target=/run/secrets/,src=secrets/ \
|
||||
set -eux && \
|
||||
INSTALL_PKGS="bash \
|
||||
traceroute \
|
||||
@ -90,7 +91,17 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
||||
--best \
|
||||
--setopt=tsflags=nodocs \
|
||||
${INSTALL_PKGS} && \
|
||||
microdnf -y update \
|
||||
--disableplugin=subscription-manager \
|
||||
--disablerepo "*" \
|
||||
--enablerepo "ubi-9-baseos-rpms" \
|
||||
--setopt=install_weak_deps=0 \
|
||||
--best \
|
||||
--setopt=tsflags=nodocs \
|
||||
tzdata && \
|
||||
microdnf -y reinstall \
|
||||
--disableplugin=subscription-manager \
|
||||
--disablerepo "*" \
|
||||
--enablerepo "ubi-9-baseos-rpms" \
|
||||
--setopt=install_weak_deps=0 \
|
||||
--best \
|
||||
|
@ -53,6 +53,7 @@ COPY --from=builder ["/tmp/zabbix-${ZBX_VERSION}/src/zabbix_sender/zabbix_sender
|
||||
COPY --from=builder ["/tmp/zabbix-${ZBX_VERSION}/conf/zabbix_proxy.conf", "/etc/zabbix/zabbix_proxy.conf"]
|
||||
|
||||
RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
||||
--mount=type=bind,target=/run/secrets/,src=secrets/ \
|
||||
set -eux && \
|
||||
INSTALL_PKGS="bash \
|
||||
traceroute \
|
||||
@ -86,7 +87,17 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
||||
--best \
|
||||
--setopt=tsflags=nodocs \
|
||||
${INSTALL_PKGS} && \
|
||||
microdnf -y update \
|
||||
--disableplugin=subscription-manager \
|
||||
--disablerepo "*" \
|
||||
--enablerepo "ubi-9-baseos-rpms" \
|
||||
--setopt=install_weak_deps=0 \
|
||||
--best \
|
||||
--setopt=tsflags=nodocs \
|
||||
tzdata && \
|
||||
microdnf -y reinstall \
|
||||
--disableplugin=subscription-manager \
|
||||
--disablerepo "*" \
|
||||
--enablerepo "ubi-9-baseos-rpms" \
|
||||
--setopt=install_weak_deps=0 \
|
||||
--setopt=keepcache=0 \
|
||||
|
@ -54,13 +54,13 @@ COPY --from=builder ["/tmp/zabbix-${ZBX_VERSION}/conf/zabbix_server.conf", "/etc
|
||||
COPY --from=builder ["/tmp/zabbix-${ZBX_VERSION}/database/mysql/create_server.sql.gz", "/usr/share/doc/zabbix-server-mysql/create.sql.gz"]
|
||||
|
||||
RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
||||
--mount=type=bind,target=/run/secrets/,src=secrets/ \
|
||||
set -eux && \
|
||||
INSTALL_PKGS="bash \
|
||||
traceroute \
|
||||
nmap \
|
||||
fping \
|
||||
shadow-utils \
|
||||
tzdata \
|
||||
iputils \
|
||||
hostname \
|
||||
libssh \
|
||||
@ -94,7 +94,17 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
||||
--best \
|
||||
--setopt=tsflags=nodocs \
|
||||
${INSTALL_PKGS} && \
|
||||
microdnf -y update \
|
||||
--disableplugin=subscription-manager \
|
||||
--disablerepo "*" \
|
||||
--enablerepo "ubi-9-baseos-rpms" \
|
||||
--setopt=install_weak_deps=0 \
|
||||
--best \
|
||||
--setopt=tsflags=nodocs \
|
||||
tzdata && \
|
||||
microdnf -y reinstall \
|
||||
--disableplugin=subscription-manager \
|
||||
--disablerepo "*" \
|
||||
--enablerepo "ubi-9-baseos-rpms" \
|
||||
--setopt=install_weak_deps=0 \
|
||||
--setopt=keepcache=0 \
|
||||
|
@ -46,9 +46,9 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
||||
set -eux && \
|
||||
INSTALL_PKGS="bash \
|
||||
shadow-utils \
|
||||
tzdata \
|
||||
net-snmp" && \
|
||||
microdnf -y install \
|
||||
--disableplugin=subscription-manager \
|
||||
--disablerepo="*" \
|
||||
--enablerepo "ubi-9-baseos-rpms" \
|
||||
--enablerepo "ubi-9-appstream-rpms" \
|
||||
@ -57,6 +57,23 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
||||
--best \
|
||||
--setopt=tsflags=nodocs \
|
||||
${INSTALL_PKGS} && \
|
||||
microdnf -y update \
|
||||
--disableplugin=subscription-manager \
|
||||
--disablerepo "*" \
|
||||
--enablerepo "ubi-9-baseos-rpms" \
|
||||
--setopt=install_weak_deps=0 \
|
||||
--best \
|
||||
--setopt=tsflags=nodocs \
|
||||
tzdata && \
|
||||
microdnf -y reinstall \
|
||||
--disableplugin=subscription-manager \
|
||||
--disablerepo "*" \
|
||||
--enablerepo "ubi-9-baseos-rpms" \
|
||||
--setopt=install_weak_deps=0 \
|
||||
--setopt=keepcache=0 \
|
||||
--best \
|
||||
--setopt=tsflags=nodocs \
|
||||
tzdata && \
|
||||
groupadd \
|
||||
--system \
|
||||
--gid 1995 \
|
||||
|
@ -49,9 +49,9 @@ COPY ["conf/etc/", "/etc/"]
|
||||
COPY --from=builder ["/tmp/zabbix-${ZBX_VERSION}/ui", "/usr/share/zabbix"]
|
||||
|
||||
RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
||||
--mount=type=bind,target=/run/secrets/,src=secrets/ \
|
||||
set -eux && \
|
||||
INSTALL_PKGS="bash \
|
||||
tzdata \
|
||||
curl-minimal \
|
||||
supervisor \
|
||||
shadow-utils \
|
||||
@ -83,12 +83,22 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
||||
--best \
|
||||
--setopt=tsflags=nodocs \
|
||||
${INSTALL_PKGS} && \
|
||||
microdnf -y reinstall \
|
||||
microdnf -y update \
|
||||
--disableplugin=subscription-manager \
|
||||
--disablerepo "*" \
|
||||
--enablerepo "ubi-9-baseos-rpms" \
|
||||
--setopt=install_weak_deps=0 \
|
||||
--best \
|
||||
--setopt=tsflags=nodocs \
|
||||
tzdata && \
|
||||
microdnf -y reinstall \
|
||||
--disableplugin=subscription-manager \
|
||||
--disablerepo "*" \
|
||||
--enablerepo "ubi-9-baseos-rpms" \
|
||||
--setopt=install_weak_deps=0 \
|
||||
--setopt=keepcache=0 \
|
||||
--best \
|
||||
--setopt=tsflags=nodocs \
|
||||
tzdata && \
|
||||
groupadd \
|
||||
--system \
|
||||
|
@ -50,6 +50,7 @@ COPY --from=builder ["/tmp/zabbix-${ZBX_VERSION}/src/go/bin/zabbix_web_service",
|
||||
COPY --from=builder ["/tmp/zabbix-${ZBX_VERSION}/src/go/conf/zabbix_web_service.conf", "/etc/zabbix/zabbix_web_service.conf"]
|
||||
|
||||
RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
||||
--mount=type=bind,target=/run/secrets/,src=secrets/ \
|
||||
set -eux && \
|
||||
INSTALL_PKGS="bash \
|
||||
shadow-utils \
|
||||
@ -62,7 +63,6 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
||||
--disablerepo "*" \
|
||||
--enablerepo "ubi-9-baseos-rpms" \
|
||||
--enablerepo "ubi-9-appstream-rpms" \
|
||||
--enablerepo "rhel-9-for-$ARCH_SUFFIX-baseos-rpms" \
|
||||
--enablerepo "rhel-9-for-$ARCH_SUFFIX-appstream-rpms" \
|
||||
--enablerepo "epel" \
|
||||
--setopt=install_weak_deps=0 \
|
||||
@ -71,6 +71,7 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
|
||||
--setopt=tsflags=nodocs \
|
||||
${INSTALL_PKGS} && \
|
||||
microdnf -y install \
|
||||
--disableplugin=subscription-manager \
|
||||
--disablerepo "*" \
|
||||
--enablerepo "ubi-9-baseos-rpms" \
|
||||
--enablerepo "ubi-9-appstream-rpms" \
|
||||
|
Loading…
Reference in New Issue
Block a user