Page MenuHomePhabricator

WIP: Composer install using docker seems to be broken
Closed, ResolvedPublic

Description

This issue description is premature and might change until more investigation of the issue has been performed

While running

docker run -it --rm --user $(id -u):$(id -g) -v ~/.composer:/tmp -v $(pwd):/app docker.io/composer install

on @Addshore 's https://github.com/addshore/mediawiki-docker-dev setup like I get the following message

> ComposerHookHandler::onPreUpdate
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for phpunit/php-invoker ^2.0 -> satisfiable by phpunit/php-invoker[2.0.0].
    - phpunit/php-invoker 2.0.0 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system.

  To enable extensions, verify that they are enabled in your .ini files:
    - 
    - /usr/local/etc/php/conf.d/date_timezone.ini
    - /usr/local/etc/php/conf.d/docker-php-ext-sodium.ini
    - /usr/local/etc/php/conf.d/docker-php-ext-zip.ini
    - /usr/local/etc/php/conf.d/memory-limit.ini
  You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.