diff --git a/agent/ol/Dockerfile b/agent/ol/Dockerfile index 2090db7ad..7ae382bc6 100644 --- a/agent/ol/Dockerfile +++ b/agent/ol/Dockerfile @@ -84,6 +84,9 @@ RUN set -eux && REPOLIST="ol8_baseos_latest,ol8_appstream" && \ gcc" && \ microdnf -y install --setopt=install_weak_deps=0 --best \ --nodocs dnf dnf-plugins-core && \ + 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/ && \ @@ -115,6 +118,7 @@ RUN set -eux && REPOLIST="ol8_baseos_latest,ol8_appstream" && \ dnf -y history undo last && \ dnf -y clean all && \ microdnf -y remove dnf dnf-plugins-core && \ + 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/ && \