Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add custom extension #128

Closed
marcteyssier opened this issue Apr 15, 2019 · 2 comments
Closed

Add custom extension #128

marcteyssier opened this issue Apr 15, 2019 · 2 comments

Comments

@marcteyssier
Copy link

I use the image thecodingmachine/php:7.2-v2-apache (the 7.3 is not on docker hub), and I want to add a custom extension in php. I have a .so, but how can I add automatically in the extension directory and enable it ?

I found the extension directory but the name is /usr/local/lib/php/extensions/no-debug-non-zts-20170718/ and I don't know how can I automatically get it.

Is it possible to add easily a custom .so extension ?

@moufmouf
Copy link
Member

I use the image thecodingmachine/php:7.2-v2-apache (the 7.3 is not on docker hub)

7.3-v2-apache is on Docker hub!
image

The extensions directory is not likely to change if you don't change the version of PHP.
So you can assume it will always be the same directory and add the extension in this directory using a Dockerfile.

Out of curiosity, what extension are you trying to install? Does it deserve being added in thecodingmachine/php or is it specific?

@moufmouf
Copy link
Member

Also, on a side note, you can find automatically the extensions directory by calling: pecl config-get ext_dir

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants