Currently I'm having an issue where with php-oci8. when enabling the module it shows and error saying Problem: module php-oci8:21c:8060020221011134100:34611983.x86_64 requires module(php:8.0), but none of the providers can be installed
Base on the issue in github. the php-oci8
is the issue. I'm not really familiar setting up a docker but they suggest using a older version but I really don't know how to. tried adding some version number but getting some errors
This is currently my dockerfile.
`# Copyright (c) 2021 Oracle and/or its affiliates.
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
FROM ghcr.io/oracle/oraclelinux8-php:7.4-fpm
RUN dnf install -y epel-release
# RUN yum update -y
RUN yum install -y supervisor
RUN yum clean all && rm -rf /var/cache/yum
RUN dnf -y module enable nginx && dnf -y install nginx && rm -rf /var/cache/dnf && ln -sf /dev/stdout /var/log/nginx/access.log && ln -sf /dev/stderr /var/log/nginx/error.log
RUN dnf install -y oraclelinux-developer-release-el8 oracle-instantclient-release-el8 libpng-devel libzip-devel
RUN dnf module enable -y php:7.4 php-oci8
RUN dnf install -y php php-oci8-21c
RUN dnf install -y php-fpm php-pdo php-pdo_mysql php-zip php-gd php-json php-openssl php-curl php-tokenizer php-dom php-opcache php-pear
RUN dnf install -y git unzip
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
RUN sed -i "s/listen = 0.0.0.0:9000/listen = 0.0.0.0:9004/g" /etc/php-fpm.d/www.conf
ADD ./dockerfiles/nginx/default.conf /etc/nginx/conf.d/
RUN mkdir -p /var/www/html
WORKDIR /var/www/html
ARG UID
ARG GID
ENV UID=${UID}
ENV GID=${GID}
RUN groupadd -g ${GID} --system laravel
RUN adduser -g laravel --system -s /bin/sh -u ${UID} laravel
RUN sed -i "s/user = apache/user = laravel/g" /etc/php-fpm.d/www.conf
RUN sed -i "s/group = apache/group = laravel/g" /etc/php-fpm.d/www.conf
COPY --chown=laravel:laravel . /var/www/html
EXPOSE 8085
EXPOSE 8087
ADD ./dockerfiles/supervisord.ini /etc/supervisord.d/supervisord.ini
CMD ["supervisord","-n"]`
Hope someone could help me.