From b56ba9884a0eef3bdb86786a1b6613ccfa966d6b Mon Sep 17 00:00:00 2001 From: Alexey Pustovalov Date: Wed, 9 Jun 2021 19:46:05 -0400 Subject: [PATCH] Added Oracle Linux 8 images instead of CentOS 8 --- agent/ol/Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/agent/ol/Dockerfile b/agent/ol/Dockerfile index 4899478d8..4699051f4 100644 --- a/agent/ol/Dockerfile +++ b/agent/ol/Dockerfile @@ -84,7 +84,9 @@ RUN set -eux && REPOLIST="ol8_baseos_latest,ol8_appstream" && \ gcc" && \ microdnf -y install --setopt=install_weak_deps=0 --best \ --nodocs dnf && \ - dnf -y install --setopt=install_weak_deps=False --best \ + mkdir -p /etc/yum/vars/ && \ + echo "" > /etc/yum/vars/ociregion && \ + dnf -y install --disablerepo "*" --enablerepo "${REPOLIST}" --setopt=install_weak_deps=False --best \ --setopt=tsflags=nodocs ${INSTALL_PKGS} && \ cd /tmp/ && \ git -c advice.detachedHead=false clone ${ZBX_SOURCES} --branch ${ZBX_VERSION} --depth 1 --single-branch zabbix-${ZBX_VERSION} && \ @@ -115,6 +117,7 @@ RUN set -eux && REPOLIST="ol8_baseos_latest,ol8_appstream" && \ dnf -y history undo last && \ dnf -y clean all && \ microdnf -y remove dnf && \ + rm -rf /etc/yum/ && \ 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/ && \