mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2025-08-09 08:35:05 +02:00
Added Oracle Linux 8 images instead of CentOS 8
This commit is contained in:
@ -23,9 +23,11 @@ RUN set -eux && \
|
||||
mkdir -p /etc/zabbix && \
|
||||
mkdir -p /etc/zabbix/web && \
|
||||
mkdir -p /etc/zabbix/web/certs && \
|
||||
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="dejavu-sans-fonts \
|
||||
curl \
|
||||
INSTALL_PKGS="curl \
|
||||
httpd \
|
||||
mod_ssl \
|
||||
php \
|
||||
@ -39,8 +41,10 @@ RUN set -eux && \
|
||||
php-xml \
|
||||
postgresql \
|
||||
supervisor" && \
|
||||
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/httpd/conf.d/default.conf" && \
|
||||
rm -f "/etc/httpd/conf.d/ssl.conf" && \
|
||||
rm -f /etc/php-fpm.d/www.conf && \
|
||||
@ -73,9 +77,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/ && \
|
||||
@ -108,7 +109,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
|
||||
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user