docker-images: Docker Build Modular Dependency problem

I’m trying to build my docker with oracle database.

been using the FROM ghcr.io/oracle/oraclelinux8-php:7.4-fpm-20221104

now I’m getting an error of Modular Dependency Problem when running RUN dnf module enable -y php:7.4 php-oci8 `

Error: Problems in request:
Modular dependency problems:

 Problem: module php-oci8:21c:8060020221011134100:34611983.x86_64 requires module(php:8.0), but none of the providers can be installed
  - module php:7.4:8030020200615123046:a4870ff1.x86_64 conflicts with module(php:8.0) provided by php:8.0:8060020211215065547:0a326c83.x86_64
  - module php:8.0:8060020211215065547:0a326c83.x86_64 conflicts with module(php:7.4) provided by php:7.4:8030020200615123046:a4870ff1.x86_64
  - module php:7.4:8030020200615123046:a4870ff1.x86_64 conflicts with module(php:8.0) provided by php:8.0:8060020220622070726:5caa48ff.x86_64
  - module php:8.0:8060020220622070726:5caa48ff.x86_64 conflicts with module(php:7.4) provided by php:7.4:8030020200615123046:a4870ff1.x86_64
  - module php:7.4:8030020200615123046:a4870ff1.x86_64 conflicts with module(php:8.0) provided by php:8.0:8070020220801083134:afd00e68.x86_64
  - module php:8.0:8070020220801083134:afd00e68.x86_64 conflicts with module(php:7.4) provided by php:7.4:8030020200615123046:a4870ff1.x86_64
  - conflicting requests

`

already tried using the newer image FROM ghcr.io/oracle/oraclelinux8-php:7.4-fpm-20221214 but no luck. hope some can help me

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Comments: 16 (5 by maintainers)

Most upvoted comments

Any Update on this?

@Vdapiton1516 what did you end up doing? The issue is still present in oraclelinux:8.7

what I did was instead of running install oraclelinux, i downloaded the SDK and unzipping it inside the docker

COPY ./docker/oracle/instantclient-basic.zip /opt/oci
COPY ./docker/oracle/instantclient-sdk.zip /opt/oci
COPY ./docker/oracle/pdo_oci.zip /opt/oci
COPY ./docker/oracle/oci8.zip /opt/oci
RUN cd /opt/oci \
    && unzip instantclient-basic.zip \
    && unzip instantclient-sdk.zip \
    && cd instantclient_12_1/ \
    && ln -s /opt/oci/instantclient_12_1/libclntsh.so.12.1 libclntsh.so \
    && ln -s /opt/oci/instantclient_12_1/libocci.so.12.1 libocci.so \
    && ls \ 
    && cd ../ \
    && unzip pdo_oci.zip \
    && cd pdo_oci \
    && phpize \
    && ./configure --with-pdo-oci=shared,instantclient,/opt/oci/instantclient_12_1 \
    && make \
    && make install \
    && echo "extension=pdo_oci.so" >> /etc/php7/conf.d/pdo_oci.ini \
    && cd /opt/oci \
    && unzip oci8.zip \
    && cd oci8 \
    && phpize \
    && ./configure --with-oci8=shared,instantclient,/opt/oci/instantclient_12_1 \
    && make \
    && make install \
    && echo "extension=oci8.so" >> /etc/php7/conf.d/oci8.ini \
    && cd /opt/oci \
    && rm *.zip

hope this helps in your end.

This is affecting our builds now too, so I’m going to raise it internally.

thank you . hope they fix it asap.