-
Notifications
You must be signed in to change notification settings - Fork 72
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
Install xdebug and xhprof as standard #173
Conversation
Hi @andrewnicols, I still wonder about the ENV VAR naming; there is a docker PHP base (fat) image - not the one we're using today! - that makes use of:
To be someway future proof should be your HTH, |
Thanks Eloy, I've renamed it to Currently doesn't support an = 0 option (later PR) or the pluar. |
Hi @andrewnicols,
In https://github.com/moodlehq/moodle-php-apache/pull/173/files#diff-535707c409375def5e16a434bf94429341e9f0feb2ac1bf55094c22322b7c179R35 there is still " I wonder if we can separate extension installation from extension enabling in the naming convention. HTH, |
We do - the |
Hi @andrewnicols,
I mean:
Just an idea based on some other experiences. HTH, |
Hi, I had this abandoned... apart from the comments from @scara (splitting install and enable), nice to have, though I don't think that's strictly needed in this case (xhprof, xdebug & pcov)... I've had a "déjà vu" here... I thought we already had commented about that... but... what's wrong with the Maybe you're confusing it with the Ciao :-) |
OT, while reviewing older issues and pull requests... maybe we can consider #156 (php-excimer) here to be added too? Alternative would be to ask into that PR to ensure the extension behaves like the 3 being added here (disabled by default). |
Hi, can we amend the readme about the pcov / phpdbg confusion commented above? With that and considering if we also should add php-excimer... i think this is basically ready. Ciao :-) |
Thanks for the reminder. I'll try and get this finished over the next few days. I'd suggest maybe leaving php-excimer to a separte pull request based on this one but no objections here. |
Sup, once this lands we can point them to the way to add it, perfect! Thanks! |
I've updated the README.md Re @scara's suggestion to add support for installing extensions, I think you're confusing the dockerfile The fat image you refer to is doing a number of things:
At the moment we are only adding support for enabling extensions. The installation of extensions at build time is much lower priority because it requires actually knowing how to install each plugin - that is any dependencies. You'll notice that the image you refer to has a library of all of the extensions it can support here: https://github.com/thecodingmachine/docker-images-php/tree/449290b1e175902944a4484dc1758349bf97cb97/extensions/8.2 and we would need to do something similar. This patch is otherwise good to go. |
(sorry for the delay, I missed this one - maybe coz I was near AL... and just saw it now. Will look to it ASAP!) |
This also adds a new PHP_EXTENSION-[name]=1 environment variable option to call docker-php-ext-enable on start.
Hi @andrewnicols , I've taken the liberty of slightly amending your patch for current master (php83-beta2):
I will be merging this once GHA ends. And then will backport to as many branches as possible. Ciao :-) |
Done, this has been backported to all branches php >= 7.4 (images are being built right now). Ciao :-) |
This also adds a new PHP_EXTENSION-[name]=1 environment variable optino to call docker-php-ext-enable on start.