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

@ -24,6 +24,9 @@ RUN set -eux && \
mkdir -p /etc/zabbix/web && \
mkdir -p /etc/zabbix/web/certs && \
mkdir -p /var/lib/php/session && \
mkdir -p /etc/yum/vars/ && \
echo "" > /etc/yum/vars/ociregion && \
echo "oracle.com" > /etc/yum/vars/ocidomain && \
microdnf -y module enable php:7.4 && \
INSTALL_PKGS="supervisor \
curl \
@ -37,8 +40,10 @@ RUN set -eux && \
php-pgsql \
php-json \
php-xml" && \
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} && \
rm -f /etc/nginx/conf.d/*.conf && \
rm -f /etc/php-fpm.d/www.conf && \
microdnf -y clean all && \
@ -65,9 +70,6 @@ RUN set -eux && \
git" && \
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 /usr/share/ && \
@ -100,7 +102,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