jcisio / docker-drupal

Easy Drupal development with multiple vhosts using Docker
MIT License
2 stars 0 forks source link

Add Composer support #4

Closed jcisio closed 4 years ago

jcisio commented 4 years ago

How would we manage Composer (and other tools) across multiple PHP containers? A single version? How do we to store it? Should we package it in this project?

jcisio commented 4 years ago

There is already Composer (like Drush) in each PHP container. Composer version is hardcoded and cannot be updated, but I guess it won't pose a problem because the version is quite recent.

I added ssh-agent forwarding in PHP containers, so now Composer will work with private repositories too. Of course, we can also run Composer in the host, as same as way we run git.