docker4drupal
docker4drupal copied to clipboard
Composer very slow fetching data from repo.packagist.org
OS type macOS
Drupal version 8
Codebase mounted codebase
Describe the bug When i run composer from the php container it is extremely slow when fetching data from packagist.org. I did some Google investagating and came up with the issue that downloading through http:// is the culprit. Somehow while fetching data from packagist it switches from https to http making it slow enough to eventually time-out. I have this issue with on several different system, different internet connections and different projects.
The command below forces downloading package data through https and fixes the issue for me. Currently i need to run this every time i spin up a PHP container. It would be nice if this could be added to the PHP container image.
More information here : https://github.com/composer/composer/issues/8205
Kind regards, Eric Mulder
Related: https://github.com/wodby/drupal-php/issues/75