mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2025-05-30 14:48:49 +02:00
Migrate from MariaDB to Oracle MySQL library
This commit is contained in:
parent
8c3d4b0ff1
commit
e211ab5cf4
@ -48,16 +48,17 @@ RUN set -eux && INSTALL_PKGS="bash \
|
|||||||
openldap \
|
openldap \
|
||||||
libssh \
|
libssh \
|
||||||
libxml2 \
|
libxml2 \
|
||||||
mariadb \
|
mysql \
|
||||||
|
mysql-libs \
|
||||||
net-snmp-agent-libs \
|
net-snmp-agent-libs \
|
||||||
OpenIPMI-libs \
|
OpenIPMI-libs \
|
||||||
pcre \
|
pcre \
|
||||||
unixODBC" && \
|
unixODBC" && \
|
||||||
dnf -y install --disableplugin=subscription-manager --disablerepo "*" \
|
REPOLIST="rhel-8-for-x86_64-baseos-rpms,rhel-8-for-x86_64-appstream-rpms,epel" && \
|
||||||
https://repo.zabbix.com/zabbix/${MAJOR_VERSION}/rhel/8/x86_64/zabbix-release-${MAJOR_VERSION}-1.el8.noarch.rpm && \
|
|
||||||
REPOLIST="rhel-8-for-x86_64-baseos-rpms,rhel-8-for-x86_64-appstream-rpms,zabbix-non-supported" && \
|
|
||||||
dnf -y update-minimal --disablerepo "*" --enablerepo ubi-8-baseos --setopt=tsflags=nodocs \
|
dnf -y update-minimal --disablerepo "*" --enablerepo ubi-8-baseos --setopt=tsflags=nodocs \
|
||||||
--security --sec-severity=Important --sec-severity=Critical && \
|
--security --sec-severity=Important --sec-severity=Critical && \
|
||||||
|
dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm && \
|
||||||
|
dnf -y module enable mysql && \
|
||||||
dnf -y install --disablerepo "*" --enablerepo "${REPOLIST}" --setopt=install_weak_deps=False --best \
|
dnf -y install --disablerepo "*" --enablerepo "${REPOLIST}" --setopt=install_weak_deps=False --best \
|
||||||
--setopt=tsflags=nodocs ${INSTALL_PKGS} && \
|
--setopt=tsflags=nodocs ${INSTALL_PKGS} && \
|
||||||
groupadd -g 1995 --system zabbix && \
|
groupadd -g 1995 --system zabbix && \
|
||||||
@ -102,7 +103,7 @@ RUN set -eux && INSTALL_PKGS="autoconf \
|
|||||||
libevent-devel \
|
libevent-devel \
|
||||||
libssh-devel \
|
libssh-devel \
|
||||||
libxml2-devel \
|
libxml2-devel \
|
||||||
mariadb-connector-c-devel \
|
mysql-devel \
|
||||||
net-snmp-devel \
|
net-snmp-devel \
|
||||||
openldap-devel \
|
openldap-devel \
|
||||||
pcre-devel \
|
pcre-devel \
|
||||||
@ -110,7 +111,7 @@ RUN set -eux && INSTALL_PKGS="autoconf \
|
|||||||
gcc \
|
gcc \
|
||||||
make \
|
make \
|
||||||
unixODBC-devel" && \
|
unixODBC-devel" && \
|
||||||
REPOLIST="rhel-8-for-x86_64-baseos-rpms,rhel-8-for-x86_64-appstream-rpms,zabbix-non-supported" && \
|
REPOLIST="rhel-8-for-x86_64-baseos-rpms,rhel-8-for-x86_64-appstream-rpms" && \
|
||||||
dnf -y install --disablerepo "*" --enablerepo "${REPOLIST}" --setopt=install_weak_deps=False --best \
|
dnf -y install --disablerepo "*" --enablerepo "${REPOLIST}" --setopt=install_weak_deps=False --best \
|
||||||
--setopt=tsflags=nodocs ${INSTALL_PKGS} && \
|
--setopt=tsflags=nodocs ${INSTALL_PKGS} && \
|
||||||
cd /tmp/ && \
|
cd /tmp/ && \
|
||||||
|
@ -53,11 +53,10 @@ RUN set -eux && INSTALL_PKGS="bash \
|
|||||||
pcre \
|
pcre \
|
||||||
sqlite-libs \
|
sqlite-libs \
|
||||||
unixODBC" && \
|
unixODBC" && \
|
||||||
dnf -y install --disableplugin=subscription-manager --disablerepo "*" \
|
REPOLIST="rhel-8-for-x86_64-baseos-rpms,rhel-8-for-x86_64-appstream-rpms,epel" && \
|
||||||
https://repo.zabbix.com/zabbix/${MAJOR_VERSION}/rhel/8/x86_64/zabbix-release-${MAJOR_VERSION}-1.el8.noarch.rpm && \
|
|
||||||
REPOLIST="rhel-8-for-x86_64-baseos-rpms,rhel-8-for-x86_64-appstream-rpms,zabbix-non-supported" && \
|
|
||||||
dnf -y update-minimal --disablerepo "*" --enablerepo ubi-8-baseos --setopt=tsflags=nodocs \
|
dnf -y update-minimal --disablerepo "*" --enablerepo ubi-8-baseos --setopt=tsflags=nodocs \
|
||||||
--security --sec-severity=Important --sec-severity=Critical && \
|
--security --sec-severity=Important --sec-severity=Critical && \
|
||||||
|
dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm && \
|
||||||
dnf -y install --disablerepo "*" --enablerepo "${REPOLIST}" --setopt=install_weak_deps=False --best \
|
dnf -y install --disablerepo "*" --enablerepo "${REPOLIST}" --setopt=install_weak_deps=False --best \
|
||||||
--setopt=tsflags=nodocs ${INSTALL_PKGS} && \
|
--setopt=tsflags=nodocs ${INSTALL_PKGS} && \
|
||||||
groupadd -g 1995 --system zabbix && \
|
groupadd -g 1995 --system zabbix && \
|
||||||
@ -109,7 +108,7 @@ RUN set -eux && INSTALL_PKGS="autoconf \
|
|||||||
gcc \
|
gcc \
|
||||||
make \
|
make \
|
||||||
unixODBC-devel" && \
|
unixODBC-devel" && \
|
||||||
REPOLIST="rhel-8-for-x86_64-baseos-rpms,rhel-8-for-x86_64-appstream-rpms,zabbix-non-supported" && \
|
REPOLIST="rhel-8-for-x86_64-baseos-rpms,rhel-8-for-x86_64-appstream-rpms" && \
|
||||||
dnf -y install --disablerepo "*" --enablerepo "${REPOLIST}" --setopt=install_weak_deps=False --best \
|
dnf -y install --disablerepo "*" --enablerepo "${REPOLIST}" --setopt=install_weak_deps=False --best \
|
||||||
--setopt=tsflags=nodocs ${INSTALL_PKGS} && \
|
--setopt=tsflags=nodocs ${INSTALL_PKGS} && \
|
||||||
cd /tmp/ && \
|
cd /tmp/ && \
|
||||||
|
@ -49,16 +49,17 @@ RUN set -eux && INSTALL_PKGS="bash \
|
|||||||
openldap \
|
openldap \
|
||||||
libssh \
|
libssh \
|
||||||
libxml2 \
|
libxml2 \
|
||||||
mariadb \
|
mysql \
|
||||||
|
mysql-libs \
|
||||||
net-snmp-agent-libs \
|
net-snmp-agent-libs \
|
||||||
OpenIPMI-libs \
|
OpenIPMI-libs \
|
||||||
pcre \
|
pcre \
|
||||||
unixODBC" && \
|
unixODBC" && \
|
||||||
dnf -y install --disableplugin=subscription-manager --disablerepo "*" \
|
REPOLIST="rhel-8-for-x86_64-baseos-rpms,rhel-8-for-x86_64-appstream-rpms,epel" && \
|
||||||
https://repo.zabbix.com/zabbix/${MAJOR_VERSION}/rhel/8/x86_64/zabbix-release-${MAJOR_VERSION}-1.el8.noarch.rpm && \
|
|
||||||
REPOLIST="rhel-8-for-x86_64-baseos-rpms,rhel-8-for-x86_64-appstream-rpms,zabbix-non-supported" && \
|
|
||||||
dnf -y update-minimal --disablerepo "*" --enablerepo ubi-8-baseos --setopt=tsflags=nodocs \
|
dnf -y update-minimal --disablerepo "*" --enablerepo ubi-8-baseos --setopt=tsflags=nodocs \
|
||||||
--security --sec-severity=Important --sec-severity=Critical && \
|
--security --sec-severity=Important --sec-severity=Critical && \
|
||||||
|
dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm && \
|
||||||
|
dnf -y module enable mysql && \
|
||||||
dnf -y install --disablerepo "*" --enablerepo "${REPOLIST}" --setopt=install_weak_deps=False --best \
|
dnf -y install --disablerepo "*" --enablerepo "${REPOLIST}" --setopt=install_weak_deps=False --best \
|
||||||
--setopt=tsflags=nodocs ${INSTALL_PKGS} && \
|
--setopt=tsflags=nodocs ${INSTALL_PKGS} && \
|
||||||
groupadd -g 1995 --system zabbix && \
|
groupadd -g 1995 --system zabbix && \
|
||||||
@ -104,7 +105,7 @@ RUN set -eux && INSTALL_PKGS="autoconf \
|
|||||||
libevent-devel \
|
libevent-devel \
|
||||||
libssh-devel \
|
libssh-devel \
|
||||||
libxml2-devel \
|
libxml2-devel \
|
||||||
mariadb-connector-c-devel \
|
mysql-devel \
|
||||||
net-snmp-devel \
|
net-snmp-devel \
|
||||||
openldap-devel \
|
openldap-devel \
|
||||||
pcre-devel \
|
pcre-devel \
|
||||||
|
@ -42,7 +42,7 @@ COPY ["licenses", "/licenses"]
|
|||||||
|
|
||||||
RUN set -eux && INSTALL_PKGS="bash \
|
RUN set -eux && INSTALL_PKGS="bash \
|
||||||
curl \
|
curl \
|
||||||
mariadb \
|
mysql \
|
||||||
nginx \
|
nginx \
|
||||||
php-bcmath \
|
php-bcmath \
|
||||||
php-fpm \
|
php-fpm \
|
||||||
@ -56,6 +56,7 @@ RUN set -eux && INSTALL_PKGS="bash \
|
|||||||
REPOLIST="rhel-8-for-x86_64-baseos-rpms,rhel-8-for-x86_64-appstream-rpms,nginx-stable" && \
|
REPOLIST="rhel-8-for-x86_64-baseos-rpms,rhel-8-for-x86_64-appstream-rpms,nginx-stable" && \
|
||||||
dnf -y update-minimal --disablerepo "*" --enablerepo ubi-8-baseos --setopt=tsflags=nodocs \
|
dnf -y update-minimal --disablerepo "*" --enablerepo ubi-8-baseos --setopt=tsflags=nodocs \
|
||||||
--security --sec-severity=Important --sec-severity=Critical && \
|
--security --sec-severity=Important --sec-severity=Critical && \
|
||||||
|
dnf -y module enable mysql && \
|
||||||
dnf -y install --disablerepo "*" --enablerepo "${REPOLIST}" --setopt=install_weak_deps=False --best \
|
dnf -y install --disablerepo "*" --enablerepo "${REPOLIST}" --setopt=install_weak_deps=False --best \
|
||||||
--setopt=tsflags=nodocs ${INSTALL_PKGS} && \
|
--setopt=tsflags=nodocs ${INSTALL_PKGS} && \
|
||||||
pip3 install supervisor && \
|
pip3 install supervisor && \
|
||||||
|
@ -68,11 +68,10 @@ RUN set -o xtrace && INSTALL_PKGS="OpenIPMI-libs \
|
|||||||
php-xml \
|
php-xml \
|
||||||
python3-pip \
|
python3-pip \
|
||||||
unixODBC" && \
|
unixODBC" && \
|
||||||
dnf -y install --disableplugin=subscription-manager --disablerepo "*" \
|
REPOLIST="rhel-8-for-x86_64-baseos-rpms,rhel-8-for-x86_64-appstream-rpms,epel,nginx-stable" && \
|
||||||
https://repo.zabbix.com/zabbix/${MAJOR_VERSION}/rhel/8/x86_64/zabbix-release-${MAJOR_VERSION}-1.el8.noarch.rpm && \
|
|
||||||
REPOLIST="rhel-8-for-x86_64-baseos-rpms,rhel-8-for-x86_64-appstream-rpms,zabbix-non-supported,nginx-stable" && \
|
|
||||||
dnf -y update-minimal --disablerepo "*" --enablerepo ubi-8-baseos --setopt=tsflags=nodocs \
|
dnf -y update-minimal --disablerepo "*" --enablerepo ubi-8-baseos --setopt=tsflags=nodocs \
|
||||||
--security --sec-severity=Important --sec-severity=Critical && \
|
--security --sec-severity=Important --sec-severity=Critical && \
|
||||||
|
dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm && \
|
||||||
dnf -y install --disablerepo "*" --enablerepo "${REPOLIST}" --setopt=install_weak_deps=False --best \
|
dnf -y install --disablerepo "*" --enablerepo "${REPOLIST}" --setopt=install_weak_deps=False --best \
|
||||||
--setopt=tsflags=nodocs ${INSTALL_PKGS} && \
|
--setopt=tsflags=nodocs ${INSTALL_PKGS} && \
|
||||||
pip3 install supervisor && \
|
pip3 install supervisor && \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user