mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2025-08-09 00:24:58 +02:00
All images updated to latest stable base images Alpine 3.12, Ubuntu 20 (focal), CentOS 8
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
FROM centos:centos7
|
||||
FROM centos:centos8
|
||||
|
||||
LABEL org.opencontainers.image.title="Zabbix proxy (SQLite3)" \
|
||||
org.opencontainers.image.authors="Alexey Pustovalov <alexey.pustovalov@zabbix.com>" \
|
||||
@ -30,11 +30,12 @@ RUN set -eux && \
|
||||
mkdir -p /var/lib/zabbix/ssl/ssl_ca && \
|
||||
mkdir -p /usr/lib/zabbix/externalscripts && \
|
||||
mkdir -p /usr/share/doc/zabbix-proxy-sqlite3 && \
|
||||
yum --quiet makecache && \
|
||||
yum -y install https://repo.zabbix.com/non-supported/rhel/7/x86_64/fping-3.10-1.el7.x86_64.rpm --setopt=tsflags=nodocs && \
|
||||
yum -y install --setopt=tsflags=nodocs \
|
||||
libcurl \
|
||||
dnf --quiet makecache && \
|
||||
dnf -y install http://repo.zabbix.com/non-supported/rhel/8/x86_64/fping-3.16-1.el8.x86_64.rpm --setopt=tsflags=nodocs && \
|
||||
dnf -y install --setopt=tsflags=nodocs \
|
||||
libcurl-minimal \
|
||||
libevent \
|
||||
libssh \
|
||||
libxml2 \
|
||||
net-snmp-libs \
|
||||
OpenIPMI-libs \
|
||||
@ -56,9 +57,9 @@ RUN set -eux && \
|
||||
gpg --batch --verify /tmp/tini.asc /sbin/tini && \
|
||||
rm -r "$GNUPGHOME" /tmp/tini.asc && \
|
||||
chmod +x /sbin/tini && \
|
||||
yum -y clean all && \
|
||||
dnf -y clean all && \
|
||||
rm -rf /var/cache/yum /var/lib/yum/yumdb/* /usr/lib/udev/hwdb.d/* && \
|
||||
rm -rf /etc/udev/hwdb.bin /root/.pki
|
||||
rm -rf /var/cache/dnf /etc/udev/hwdb.bin /root/.pki
|
||||
|
||||
ARG MAJOR_VERSION=5.0
|
||||
ARG ZBX_VERSION=${MAJOR_VERSION}
|
||||
@ -72,14 +73,16 @@ LABEL org.opencontainers.image.documentation="https://www.zabbix.com/documentati
|
||||
org.opencontainers.image.source="${ZBX_SOURCES}"
|
||||
|
||||
RUN set -eux && \
|
||||
yum --quiet makecache && \
|
||||
yum -y install --setopt=tsflags=nodocs \
|
||||
sed -i 's/enabled=0/enabled=1/g' /etc/yum.repos.d/CentOS-PowerTools.repo && \
|
||||
dnf --quiet makecache && \
|
||||
dnf -y install --setopt=tsflags=nodocs \
|
||||
autoconf \
|
||||
automake \
|
||||
gcc \
|
||||
pcre-devel \
|
||||
libcurl-devel \
|
||||
libevent-devel \
|
||||
libssh2-devel \
|
||||
libssh-devel \
|
||||
libxml2-devel \
|
||||
make \
|
||||
net-snmp-devel \
|
||||
@ -109,7 +112,7 @@ RUN set -eux && \
|
||||
--with-net-snmp \
|
||||
--with-openipmi \
|
||||
--with-openssl \
|
||||
--with-ssh2 \
|
||||
--with-ssh \
|
||||
--with-unixodbc \
|
||||
--enable-ipv6 \
|
||||
--silent && \
|
||||
@ -127,10 +130,11 @@ RUN set -eux && \
|
||||
chown --quiet -R zabbix:root /etc/zabbix/ /var/lib/zabbix/ && \
|
||||
chgrp -R 0 /etc/zabbix/ /var/lib/zabbix/ && \
|
||||
chmod -R g=u /etc/zabbix/ /var/lib/zabbix/ && \
|
||||
yum -y history undo `yum -q history | sed -n 3p |column -t | cut -d' ' -f1` && \
|
||||
yum -y clean all && \
|
||||
dnf -y history undo `dnf -q history | sed -n 3p |column -t | cut -d' ' -f1` && \
|
||||
dnf -y clean all && \
|
||||
sed -i 's/enabled=1/enabled=0/g' /etc/yum.repos.d/CentOS-PowerTools.repo && \
|
||||
rm -rf /var/cache/yum /var/lib/yum/yumdb/* /usr/lib/udev/hwdb.d/* && \
|
||||
rm -rf /etc/udev/hwdb.bin /root/.pki
|
||||
rm -rf /var/cache/dnf /etc/udev/hwdb.bin /root/.pki
|
||||
|
||||
EXPOSE 10051/TCP
|
||||
|
||||
|
Reference in New Issue
Block a user