Added Oracle Linux 8 images instead of CentOS 8

This commit is contained in:
Alexey Pustovalov
2021-06-10 19:39:57 +05:00
parent 7cadf4f03d
commit 072228643f
20 changed files with 90 additions and 83 deletions

View File

@ -21,10 +21,14 @@ RUN set -eux && \
mkdir -p /etc/zabbix/ && \
mkdir -p /usr/sbin/zabbix_java/ && \
mkdir -p /usr/sbin/zabbix_java/ext_lib/ && \
mkdir -p /etc/yum/vars/ && \
echo "" > /etc/yum/vars/ociregion && \
echo "oracle.com" > /etc/yum/vars/ocidomain && \
INSTALL_PKGS="java-1.8.0-openjdk-headless \
findutils" && \
microdnf -y install --setopt=install_weak_deps=0 --best \
--nodocs ${INSTALL_PKGS} && \
microdnf -y --disablerepo="*" --enablerepo="ol8_baseos_latest" \
--enablerepo="ol8_appstream" \
install --setopt=install_weak_deps=0 --best --nodocs ${INSTALL_PKGS} && \
microdnf -y clean all && \
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
@ -50,9 +54,6 @@ RUN set -eux && REPOLIST="ol8_baseos_latest,ol8_appstream" && \
gcc" && \
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/ && \
@ -79,7 +80,6 @@ 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/ /usr/sbin/zabbix_java/ && \
chgrp -R 0 /etc/zabbix/ /usr/sbin/zabbix_java/ && \
chmod -R g=u /etc/zabbix/ /usr/sbin/zabbix_java/ && \