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
Web container - additional php modules #949
Comments
It seems everybody needs a new package of one type or another, so we've added sudo into the latest v0.20.0 release of ddev. An example of adding a package on post-start is given in https://ddev.readthedocs.io/en/latest/users/extending-commands/#supported-tasks We're hoping that's a solution for all problems of this type, if it's good enough for you, give us the go-ahead to close this. Thanks! |
This solution kind of works with the following limitations
|
|
I ran |
Thanks, I tried
But, you can solve the problem with
(before the php-imagick install) (I chose 399 as just a random choice, it could be anything up to 999) |
I still would like it to have ImageMagick and Redis per default (or at least configurable like the webroot). Almost every PHP-project use ImageMagick and/or Redis. |
This recipe tells how to use redis quite nicely, php-redis has been added to the web container - https://stackoverflow.com/questions/51476781/can-i-have-redis-available-in-my-ddev-container I can see how you'd need IMageMagick, does the solution in #949 (comment) do anything for you? It would be interesting to see how much it actually adds in size, I'm worried that it might be significant. |
#949 Adds php-imagick; hopefully that will help on that end. We don't plain to add redis directly to the web container, but the Stack Overflow recipe may help you when you need that @jonnitto - php-redis is in the web container and has been for a few releases. Thanks for letting us know what you need! |
I tried to add install the Image Magick in a post-start hook:
But it does not work, after ddev start I get the following info:
|
Well, you might want to try just using |
Hope anybody coming here from Google asking the same reads until here. This now is done via For example: webimage_extra_packages: [php-yaml, php7.3-ldap] |
Is your feature request related to a problem? Please describe.
In my projects (usually Neos CMS) i usually need the php-imagick and php-redis php-modules wich are not preset in the current web container. Currently i only can use a custom web container or install these modules via porst-start hook. Both works not really satisfying for me.
Describe the solution you'd like
I would like to have a documented way of adding php-modules to the web container.
Describe alternatives you've considered
Offcourse providing the modules php-imagick and php-redis would solve the problem for me and but i think other users will have different php-module needs.
The text was updated successfully, but these errors were encountered: