Score:0

Oracle Instant Client setup specific version in Dockerfile

br flag

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.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.