Giter Club home page Giter Club logo

Comments (9)

tmatsuo avatar tmatsuo commented on August 14, 2024

Yeah, I hope pickle is usable for us:
https://github.com/FriendsOfPHP/pickle

from php-docker.

cedricziel avatar cedricziel commented on August 14, 2024

Interesting project - didnt know that.

I would short-circuit this feature-request for the time being by adapting the heroku buildpack once again, as many shared extensions are already available, but not enabled.

from php-docker.

tmatsuo avatar tmatsuo commented on August 14, 2024

Now you can put php.ini with extensions=***.so to enable them.

I agree it is a nice feature to read the composer.json and automate it. What should we do when specified extensions are not compiled?

from php-docker.

tmatsuo avatar tmatsuo commented on August 14, 2024

Or probably composer install will just fail.

from php-docker.

bshaffer avatar bshaffer commented on August 14, 2024

Yes, I agree. Similar to an unresolvable package version, if the extensions
are not available, an error should be thrown.

On Fri, Dec 11, 2015 at 1:04 PM Takashi Matsuo [email protected]
wrote:

Or probably composer install will just fail.


Reply to this email directly or view it on GitHub
#25 (comment)
.

from php-docker.

JustinBeckwith avatar JustinBeckwith commented on August 14, 2024

Out of curiosity - which specific extensions are you looking to use? We're hoping that in the general case most people won't have to install extensions for simple apps. I see two levels of automation here:

  1. Automatically include extensions referenced as ext- in composer.json in the php.ini
  2. Actually install extensions into the base image

Does pickle do both of these, or just #2?

from php-docker.

cedricziel avatar cedricziel commented on August 14, 2024

I think the primary goal should be category 1. I actually don't use other extensions very often. Every once in a while I hear from exotic native code, but for those cases, the Docker image can be extended.

If the interpreter doesn't have the extension demanded via composer.json, composer will refuse to install the dependencies from the lock file, which is very transparent in the build output.

from php-docker.

cedricziel avatar cedricziel commented on August 14, 2024

I think regarding (non-shared|third-party) extensions, those might be c implementations for redis and mongo, as well as memcached (provided for 5.6), oAuth, the newrelic agent, blackfire and apcu.

As these are common ones, I think the image should be able to provide them. - What do you think?

from php-docker.

tmatsuo avatar tmatsuo commented on August 14, 2024

@cedricziel Yes, we want to pre-compile popular extensions.

from php-docker.

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.