mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2025-02-02 02:49:16 +01:00
Added modbus support for RHEL like systems
This commit is contained in:
parent
b17b4d3ae2
commit
42950f1947
@ -39,6 +39,7 @@ RUN set -eux && \
|
||||
iputils \
|
||||
pcre2 \
|
||||
libcurl-minimal \
|
||||
libmodbus \
|
||||
openssl-libs \
|
||||
zlib" && \
|
||||
dnf -y install epel-release && \
|
||||
|
@ -39,6 +39,7 @@ RUN set -eux && \
|
||||
iputils \
|
||||
pcre2 \
|
||||
libcurl \
|
||||
libmodbus \
|
||||
openssl-libs \
|
||||
zlib" && \
|
||||
microdnf -y install \
|
||||
|
@ -57,6 +57,7 @@ RUN set -eux && \
|
||||
iputils \
|
||||
shadow-utils \
|
||||
pcre2 \
|
||||
libmodbus \
|
||||
libcurl-minimal" && \
|
||||
curl -sSL -o /tmp/epel-release-latest-9.noarch.rpm https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm && \
|
||||
rpm -ivh /tmp/epel-release-latest-9.noarch.rpm && \
|
||||
|
@ -44,6 +44,7 @@ RUN set -eux && \
|
||||
iputils \
|
||||
pcre2 \
|
||||
libcurl-minimal \
|
||||
libmodbus \
|
||||
smartmontools \
|
||||
sudo \
|
||||
openssl-libs" && \
|
||||
|
@ -44,6 +44,7 @@ RUN set -eux && \
|
||||
iputils \
|
||||
pcre2 \
|
||||
libcurl \
|
||||
libmodbus \
|
||||
smartmontools \
|
||||
sudo \
|
||||
openssl-libs" && \
|
||||
|
@ -64,6 +64,7 @@ RUN set -eux && \
|
||||
pcre2 \
|
||||
smartmontools \
|
||||
sudo \
|
||||
libmodbus \
|
||||
libcurl-minimal" && \
|
||||
curl -sSL -o /tmp/epel-release-latest-9.noarch.rpm https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm && \
|
||||
rpm -ivh /tmp/epel-release-latest-9.noarch.rpm && \
|
||||
|
@ -19,7 +19,7 @@ LABEL org.opencontainers.image.authors="Alexey Pustovalov <alexey.pustovalov@zab
|
||||
org.opencontainers.image.version="${ZBX_VERSION}"
|
||||
|
||||
RUN set -eux && \
|
||||
REPOLIST="baseos,appstream,crb" && \
|
||||
REPOLIST="baseos,appstream,crb,epel" && \
|
||||
INSTALL_PKGS="autoconf \
|
||||
automake \
|
||||
bash \
|
||||
@ -29,6 +29,7 @@ RUN set -eux && \
|
||||
libcurl-devel \
|
||||
libevent-devel \
|
||||
libssh-devel \
|
||||
libmodbus-devel \
|
||||
libxml2-devel \
|
||||
openssl-devel \
|
||||
openldap-devel \
|
||||
@ -44,6 +45,7 @@ RUN set -eux && \
|
||||
gettext \
|
||||
go-toolset \
|
||||
unixODBC-devel" && \
|
||||
dnf -y install epel-release && \
|
||||
dnf -y install \
|
||||
--disablerepo "*" \
|
||||
--enablerepo "${REPOLIST}" \
|
||||
|
@ -17,6 +17,8 @@ LABEL org.opencontainers.image.authors="Alexey Pustovalov <alexey.pustovalov@zab
|
||||
org.opencontainers.image.vendor="Zabbix LLC" \
|
||||
org.opencontainers.image.version="${ZBX_VERSION}"
|
||||
|
||||
COPY ["conf/etc/yum.repos.d/oracle-epel-ol9.repo", "/etc/yum.repos.d/oracle-epel-ol9.repo"]
|
||||
|
||||
RUN set -eux && \
|
||||
INSTALL_PKGS="autoconf \
|
||||
automake \
|
||||
@ -28,6 +30,7 @@ RUN set -eux && \
|
||||
libcurl-devel \
|
||||
libevent-devel \
|
||||
libssh-devel \
|
||||
libmodbus-devel \
|
||||
libxml2-devel \
|
||||
openssl-devel \
|
||||
openldap-devel \
|
||||
@ -47,6 +50,7 @@ RUN set -eux && \
|
||||
--enablerepo "ol9_baseos_latest" \
|
||||
--enablerepo "ol9_appstream" \
|
||||
--enablerepo "ol9_codeready_builder" \
|
||||
--enablerepo="ol9_developer_EPEL" \
|
||||
--setopt=install_weak_deps=0 \
|
||||
--best \
|
||||
--nodocs ${INSTALL_PKGS} && \
|
||||
|
@ -0,0 +1,6 @@
|
||||
[ol9_developer_EPEL]
|
||||
name=Oracle Linux $releasever EPEL Packages for Development ($basearch)
|
||||
baseurl=https://yum$ociregion.$ocidomain/repo/OracleLinux/OL9/developer/EPEL/$basearch/
|
||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
|
||||
gpgcheck=1
|
||||
enabled=0
|
@ -40,6 +40,7 @@ RUN set -eux && \
|
||||
libcurl-devel \
|
||||
libevent-devel \
|
||||
libssh-devel \
|
||||
libmodbus-devel \
|
||||
libxml2-devel \
|
||||
openssl-devel \
|
||||
openldap-devel \
|
||||
@ -54,6 +55,9 @@ RUN set -eux && \
|
||||
git \
|
||||
gettext \
|
||||
unixODBC-devel" && \
|
||||
curl -sSL -o /tmp/epel-release-latest-9.noarch.rpm https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm && \
|
||||
rpm -ivh /tmp/epel-release-latest-9.noarch.rpm && \
|
||||
rm -rf /tmp/epel-release-latest-9.noarch.rpm && \
|
||||
ARCH_SUFFIX="$(arch)"; \
|
||||
microdnf -y install \
|
||||
--disablerepo "*" \
|
||||
@ -62,6 +66,7 @@ RUN set -eux && \
|
||||
--enablerepo "rhel-9-for-$ARCH_SUFFIX-baseos-rpms" \
|
||||
--enablerepo "rhel-9-for-$ARCH_SUFFIX-appstream-rpms" \
|
||||
--enablerepo "codeready-builder-for-rhel-9-$ARCH_SUFFIX-rpms" \
|
||||
--enablerepo "epel" \
|
||||
--setopt=install_weak_deps=0 \
|
||||
--best \
|
||||
--setopt=tsflags=nodocs \
|
||||
|
@ -50,7 +50,7 @@ RUN set -eux && \
|
||||
--enable-webservice \
|
||||
--with-ldap \
|
||||
--with-libcurl \
|
||||
# --with-libmodbus \
|
||||
--with-libmodbus \
|
||||
--with-libpcre2 \
|
||||
--with-libxml2 \
|
||||
--with-mysql \
|
||||
|
@ -59,7 +59,7 @@ RUN set -eux && \
|
||||
--enable-webservice \
|
||||
--with-ldap \
|
||||
--with-libcurl \
|
||||
# --with-libmodbus \
|
||||
--with-libmodbus \
|
||||
--with-libpcre2 \
|
||||
--with-libxml2 \
|
||||
--with-mysql \
|
||||
|
@ -49,7 +49,7 @@ RUN set -eux && \
|
||||
--enable-webservice \
|
||||
--with-ldap \
|
||||
--with-libcurl \
|
||||
# --with-libmodbus \
|
||||
--with-libmodbus \
|
||||
--with-libpcre2 \
|
||||
--with-libxml2 \
|
||||
--with-net-snmp \
|
||||
|
Loading…
Reference in New Issue
Block a user