-
Notifications
You must be signed in to change notification settings - Fork 203
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
Update Dockerfile to install PHP zip extension #7
Conversation
When run
under Drupal/core/ It fails without php zip extension. So, we need php zip extension for Drupal 8. |
With those backports, do you think it should also be added it to the drupal 7 image as well? |
For D7, without Composer, the Core doesn't fail. But, this is Composer Manager statistics https://www.drupal.org/project/usage/composer_manager Currently, there are about 1,500 sites using Composer on D7. I expect this number to increase and more people to use docker. Therefore, I think it's a good idea to add PHP zip extension to D7 image. |
Is Composer part of Drupal's core? I can't seem to find any mention of either composer or drush (which is the primary context I see mention of Composer+Drupal in my searching): $ docker run -it --rm drupal bash
root@8f71ce34dd8d:/var/www/html# find -name '*drush*'
root@8f71ce34dd8d:/var/www/html# find -name '*composer*'
root@8f71ce34dd8d:/var/www/html# grep -rn 'composer' .
root@8f71ce34dd8d:/var/www/html# I think the argument that it's used by a majority of modules is compelling, but I want to make sure we don't rush into it. If it is indeed used directly by a compelling number of modules, we should likely add Composer itself to the base image as well, right? |
D8 core ships with ./composer.json When people follow the instructions below
https://www.drupal.org/node/2405811 This workflow will fail because of #7 (comment) On the other hand, D7 core doesn't have files directly related to Composer |
I'd like to point it out, if this image doesn't support php zip (therefore, composer digitalkaoz/composer@3862445) The ways to install many D8 modules are:
|
Composer is here to stay, and will be the only way many modules (such as Commerce, Address) will be installable. It will also eventually replace Drush Make. Not supporting Composer makes this solution unusable for Drupal 8, so I encourage this issue to move forward. |
Drupal uses Composer a lot; especially Drupal 8, and there are a lot of modules, requiring composer, are being back ported to Drupal 7. Composer use PHP zip extension. Otherwise, see docker-library/php#60 Also add zip extension to Drupal 7.
As @yosifkit suggested in #7 (comment) The updated patch is ready for your reviewing |
LGTM |
1 similar comment
LGTM |
Update Dockerfile to install PHP zip extension
- `docker`: 1.8.3, 1.9.0-rc1 - `docker-dev`: 1.8.3 - `drupal`: add PHP zip extension (docker-library/drupal#7) - `httpd`: 2.4.17 - `mariadb`: 5.5.46+maria-1~wheezy - `mongo`: 3.0.7 - `owncloud`: add FPM variants (docker-library/owncloud#28) - `postgres`: explicit uid/gid (docker-library/postgres#93) - `tomcat`: 8.0.28
- `docker`: 1.8.3, 1.9.0-rc1 - `docker-dev`: 1.8.3 - `drupal`: add PHP zip extension (docker-library/drupal#7) - `httpd`: 2.4.17 - `mariadb`: 5.5.46+maria-1~wheezy - `mongo`: 3.0.7 - `owncloud`: add FPM variants (docker-library/owncloud#28) - `postgres`: explicit uid/gid (docker-library/postgres#93) - `tomcat`: 8.0.28
Drupal uses Composer a lot; especially Drupal 8, and there are a lot of modules, requiring composer, are being back ported to Drupal 7. Composer use PHP zip extension. Otherwise, see docker-library/php#60