Giter Site home page Giter Site logo

Comments (4)

mistraloz avatar mistraloz commented on July 19, 2024

Hello. I can not test with bitbucket but with cli, it's work :
docker run --rm -it -e"PHP_EXTENSIONS=gd tidy bcmath imap intl" thecodingmachine/php:8.1-v4-fpm php -m | grep bcmath

To force regeration of configuration (manually), you can run :

/usr/bin/real_php /usr/local/bin/generate_conf.php | sudo tee "/etc/php/${PHP_VERSION}/mods-available/generated_conf.ini" > /dev/null
PHP_VERSION="${PHP_VERSION}" /usr/bin/real_php /usr/local/bin/setup_extensions.php | sudo bash

If the bug it's not fix with that, please execute the manual commands (without > /dev/null `) and give me the result of std/err output + content of /etc/php/${PHP_VERSION}/mods-available/generated_conf.ini

PS: for pipeline, it's not fpm that you may need but cli variant (but both should work).

from docker-images-php.

uuf6429 avatar uuf6429 commented on July 19, 2024

I had a similar problem. In the bitbucket log, this line came up:

Invalid environment variable value found for PHP_EXTENSION_FFI. Value: "%!s(int=1)". Valid values are "0", "1", "yes", "no", "true", "false", "on", "off".

Previously my docker-compose file looked like so (as yaml hashes):

    environment:
      PHP_EXTENSION_FFI: true

These also failed:

      PHP_EXTENSION_FFI: 1
      PHP_EXTENSION_FFI: "true"

In the end I went for - PHP_EXTENSIONS=ffi (as a yaml string list) and that worked. No idea where the problem started.

@sdespont note that your second try is wrong:

Also tried with

image:
  name: thecodingmachine/php:8.1-v4-fpm
  environment:
    PHP_EXTENSIONS=gd tidy bcmath imap intl

You need to prefix lines with a dash to have a yaml string list:

image:
  name: thecodingmachine/php:8.1-v4-fpm
  environment:
    - PHP_EXTENSIONS=gd tidy bcmath imap intl

from docker-images-php.

stale avatar stale commented on July 19, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please update it if any action still required.

from docker-images-php.

stale avatar stale commented on July 19, 2024

This issue has been automatically closed because it has not had recent activity. Please, reopen if you need.

from docker-images-php.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.