Use latest available PHP version (8.2) on EL and derivatives

This commit is contained in:
Alexey Pustovalov 2024-07-23 18:13:50 +09:00
parent 8269cadced
commit 23cbac1e50
10 changed files with 35 additions and 2 deletions

View File

@ -49,6 +49,12 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
glibc-locale-source \ glibc-locale-source \
shadow-utils \ shadow-utils \
supervisor" && \ supervisor" && \
microdnf -y module enable \
--disablerepo "*" \
--enablerepo "appstream" \
--setopt=install_weak_deps=0 \
--setopt=keepcache=0 \
php:8.2 && \
microdnf -y install \ microdnf -y install \
--disablerepo "*" \ --disablerepo "*" \
--enablerepo "extras-common" \ --enablerepo "extras-common" \

View File

@ -49,6 +49,12 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
findutils \ findutils \
glibc-locale-source \ glibc-locale-source \
supervisor" && \ supervisor" && \
microdnf -y module enable \
--disablerepo "*" \
--enablerepo "ol9_appstream" \
--setopt=install_weak_deps=0 \
--setopt=keepcache=0 \
php:8.2 && \
microdnf -y install \ microdnf -y install \
--disablerepo="*" \ --disablerepo="*" \
--enablerepo="ol9_baseos_latest" \ --enablerepo="ol9_baseos_latest" \

View File

@ -61,6 +61,7 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
--enablerepo "appstream" \ --enablerepo "appstream" \
--setopt=install_weak_deps=0 \ --setopt=install_weak_deps=0 \
--setopt=keepcache=0 \ --setopt=keepcache=0 \
php:8.2 \
postgresql:16 && \ postgresql:16 && \
microdnf -y install \ microdnf -y install \
--disablerepo "*" \ --disablerepo "*" \

View File

@ -51,10 +51,10 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
supervisor" && \ supervisor" && \
microdnf -y module enable \ microdnf -y module enable \
--disablerepo "*" \ --disablerepo "*" \
--enablerepo "ol9_baseos_latest" \
--enablerepo "ol9_appstream" \ --enablerepo "ol9_appstream" \
--setopt=install_weak_deps=0 \ --setopt=install_weak_deps=0 \
--setopt=keepcache=0 \ --setopt=keepcache=0 \
php:8.2 \
postgresql:16 && \ postgresql:16 && \
microdnf -y install \ microdnf -y install \
--disablerepo="*" \ --disablerepo="*" \

View File

@ -47,6 +47,12 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
glibc-locale-source \ glibc-locale-source \
shadow-utils \ shadow-utils \
supervisor" && \ supervisor" && \
microdnf -y module enable \
--disablerepo "*" \
--enablerepo "appstream" \
--setopt=install_weak_deps=0 \
--setopt=keepcache=0 \
php:8.2 && \
microdnf -y install \ microdnf -y install \
--disablerepo "*" \ --disablerepo "*" \
--enablerepo "extras-common" \ --enablerepo "extras-common" \

View File

@ -47,6 +47,12 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
findutils \ findutils \
glibc-locale-source \ glibc-locale-source \
supervisor" && \ supervisor" && \
microdnf -y module enable \
--disablerepo "*" \
--enablerepo "ol9_appstream" \
--setopt=install_weak_deps=0 \
--setopt=keepcache=0 \
php:8.2 && \
microdnf -y install \ microdnf -y install \
--disablerepo="*" \ --disablerepo="*" \
--enablerepo="ol9_baseos_latest" \ --enablerepo="ol9_baseos_latest" \

View File

@ -71,6 +71,12 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
rpm -ivh /tmp/epel-release-latest-9.noarch.rpm && \ rpm -ivh /tmp/epel-release-latest-9.noarch.rpm && \
rm -rf /tmp/epel-release-latest-9.noarch.rpm && \ rm -rf /tmp/epel-release-latest-9.noarch.rpm && \
ARCH_SUFFIX="$(arch)"; \ ARCH_SUFFIX="$(arch)"; \
microdnf -y module enable \
--disablerepo "*" \
--enablerepo "rhel-9-for-$ARCH_SUFFIX-appstream-rpms" \
--setopt=install_weak_deps=0 \
--setopt=keepcache=0 \
php:8.2 && \
microdnf -y install \ microdnf -y install \
--disablerepo "*" \ --disablerepo "*" \
--enablerepo "ubi-9-baseos-rpms" \ --enablerepo "ubi-9-baseos-rpms" \

View File

@ -59,6 +59,7 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
--enablerepo "appstream" \ --enablerepo "appstream" \
--setopt=install_weak_deps=0 \ --setopt=install_weak_deps=0 \
--setopt=keepcache=0 \ --setopt=keepcache=0 \
php:8.2 \
postgresql:16 && \ postgresql:16 && \
microdnf -y install \ microdnf -y install \
--disablerepo "*" \ --disablerepo "*" \

View File

@ -49,10 +49,10 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
supervisor" && \ supervisor" && \
microdnf -y module enable \ microdnf -y module enable \
--disablerepo "*" \ --disablerepo "*" \
--enablerepo "ol9_baseos_latest" \
--enablerepo "ol9_appstream" \ --enablerepo "ol9_appstream" \
--setopt=install_weak_deps=0 \ --setopt=install_weak_deps=0 \
--setopt=keepcache=0 \ --setopt=keepcache=0 \
php:8.2 \
postgresql:16 && \ postgresql:16 && \
microdnf -y install \ microdnf -y install \
--disablerepo="*" \ --disablerepo="*" \

View File

@ -76,6 +76,7 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
--enablerepo "rhel-9-for-$ARCH_SUFFIX-appstream-rpms" \ --enablerepo "rhel-9-for-$ARCH_SUFFIX-appstream-rpms" \
--setopt=install_weak_deps=0 \ --setopt=install_weak_deps=0 \
--setopt=keepcache=0 \ --setopt=keepcache=0 \
php:8.2 \
postgresql:16 && \ postgresql:16 && \
microdnf -y install \ microdnf -y install \
--disablerepo "*" \ --disablerepo "*" \