-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Include a docker-php-ext-disable #220
Comments
@kmfk why not add your script as pull request? |
I'm honestly a little -1 on adding this. Enabling an extension in a generic way is simple (requires getting |
Yes, furthermore there's no good reason to disable an extension in fact. If you use the same container for tests/dev & production (which is pretty cool), you can imagine running php differently depending on your environment. It's easier for example to run php |
+1 It is useful if you create your own images for dev/prod. If dev extends the production image, it's great to disable something from production, i.e.
|
@kodeart yes... but why not producing a dedicated image for dev and another one for prod? Very easy with automated builds & tags. |
Given that #178 added |
Something of note where people may want to specifically disabled xdebug you can set the environment variable |
Thanks for sharing this! |
Or |
I saw that there is no disable script here - ideally, it'd be great to replicate both
php5enmod
andphp5dismod
functionality.I created a disable script based on
docker-php-ext-enable
and am copying it in my build. The script just looks for the existence of the extension ini file and removes it - but not sure if there is a more ideal way to handle this? Willing to PR it, if there's any interest.The use case for me was to be able to enable or disable xdebug on the fly when running PHPUnit:
docker exec -ti php sh -c "docker-php-ext-disable xdebug && vendor/bin/phpunit
The text was updated successfully, but these errors were encountered: