mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2025-08-09 00:24:58 +02:00
Added Oracle Linux 8 images instead of CentOS 8
This commit is contained in:
@ -45,12 +45,15 @@ RUN set -eux && \
|
||||
mkdir -p /var/lib/zabbix/ssl/ssl_ca && \
|
||||
mkdir -p /usr/lib/zabbix/externalscripts && \
|
||||
mkdir -p /usr/share/doc/zabbix-proxy-mysql && \
|
||||
mkdir -p /etc/yum/vars/ && \
|
||||
echo "" > /etc/yum/vars/ociregion && \
|
||||
echo "oracle.com" > /etc/yum/vars/ocidomain && \
|
||||
microdnf -y module enable mysql && \
|
||||
INSTALL_PKGS="libevent \
|
||||
systemd \
|
||||
libssh \
|
||||
fping \
|
||||
file-libs \
|
||||
fping \
|
||||
libxml2 \
|
||||
mysql \
|
||||
mysql-libs \
|
||||
@ -61,8 +64,10 @@ RUN set -eux && \
|
||||
pcre \
|
||||
zlib \
|
||||
unixODBC" && \
|
||||
microdnf -y install --setopt=install_weak_deps=0 --best \
|
||||
--nodocs ${INSTALL_PKGS} && \
|
||||
microdnf -y --disablerepo="*" --enablerepo="ol8_baseos_latest" \
|
||||
--enablerepo="ol8_appstream" \
|
||||
--enablerepo="ol8_developer_EPEL" \
|
||||
install --setopt=install_weak_deps=0 --best --nodocs ${INSTALL_PKGS} && \
|
||||
curl -L "https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-${ARCH_SUFFIX}" -o /sbin/tini && \
|
||||
curl -L "https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-${ARCH_SUFFIX}.asc" -o /tmp/tini.asc && \
|
||||
export GNUPGHOME="$(mktemp -d)" && \
|
||||
@ -111,9 +116,6 @@ RUN set -eux && \
|
||||
unixODBC-devel" && \
|
||||
microdnf -y install --setopt=install_weak_deps=0 --best \
|
||||
--nodocs dnf && \
|
||||
mkdir -p /etc/yum/vars/ && \
|
||||
echo "" > /etc/yum/vars/ociregion && \
|
||||
echo "oracle.com" > /etc/yum/vars/ocidomain && \
|
||||
dnf -y install --disablerepo "*" --enablerepo "${REPOLIST}" --setopt=install_weak_deps=False --best \
|
||||
--setopt=tsflags=nodocs ${INSTALL_PKGS} && \
|
||||
cd /tmp/ && \
|
||||
@ -158,7 +160,6 @@ RUN set -eux && \
|
||||
dnf -y history undo last && \
|
||||
dnf -y clean all && \
|
||||
microdnf -y remove dnf && \
|
||||
rm -rf /etc/yum/ && \
|
||||
rm -rf /var/cache/yum /var/lib/yum/yumdb/* /usr/lib/udev/hwdb.d/* && \
|
||||
rm -rf /var/cache/dnf /etc/udev/hwdb.bin /root/.pki
|
||||
|
||||
|
@ -3,4 +3,4 @@ name=Oracle Linux $releasever EPEL Packages for Development ($basearch)
|
||||
baseurl=https://yum$ociregion.$ocidomain/repo/OracleLinux/OL8/developer/EPEL/$basearch/
|
||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
|
||||
gpgcheck=1
|
||||
enabled=1
|
||||
enabled=0
|
||||
|
Reference in New Issue
Block a user