wodby / drupal-php

PHP docker container image for Drupal
https://wodby.com/stacks/drupal
MIT License
60 stars 80 forks source link

Composer 2.0.* #76

Closed mfradcourt closed 3 years ago

mfradcourt commented 3 years ago

Could you create a tag for composer 2.0 which has been released on 24 of October. You may also consider tagging a version with composer 1 if it makes sense to you.

Since composer is added to the drupal-php image during the build process, and, the new default version of composer is 2.0.*, simply running the pipeline should do the trick?

kevinquillen commented 3 years ago

Composer 2 is way faster on Drupal 8/9. I just tried it. Despite it using the installer url for Composer, the PHP tags still seem to ship with Composer 1. Has there been a tagged image since Oct 24th?

I was able to get around it on a test project and try out Composer 2 with:

ARG PHP_TAG
FROM wodby/drupal-php:${PHP_TAG}
USER root
RUN composer self-update --2
USER wodby

The speed is much much better (especially combined with Mutagen) and want to use it right away. For now it seems like I need to use my own Dockerfile to get it.

Will there be an update this week?

csandanov commented 3 years ago

Currently tests fail with composer 2 because drupal console does not yet support it https://github.com/hechoendrupal/drupal-console-extend-plugin/issues/23

kevinquillen commented 3 years ago

I usually add Drush via Composer to projects and don't use Drupal Console at all. Is it wise for this image to couple itself to Drupal Console? Commits are sporadic and as far as I understand it is not very active, and Composer 2 is too good to not have.

csandanov commented 3 years ago

latest and 4.19.0+ now come with composer 2.0