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

@ -47,6 +47,9 @@ RUN set -eux && \
mkdir -p /usr/lib/zabbix/alertscripts && \
mkdir -p /usr/lib/zabbix/externalscripts && \
mkdir -p /usr/share/doc/zabbix-server-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="fping \
file-libs \
@ -66,8 +69,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)" && \
@ -116,9 +121,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/ && \
@ -165,7 +167,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

View File

@ -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