giansalex / lycet

API REST de Facturación Electrónica Sunat utilizando Greenter.
MIT License
80 stars 41 forks source link

La instalación con Docker falla por un problema de librerías #599

Closed augustosamame closed 1 year ago

augustosamame commented 1 year ago

Versión de Docker: 24.0.2

Pasos para reproducir

git clone https://github.com/giansalex/lycet . docker build -t lycet .

Este es el error que se puede visualizar:

#0 5.084   - Installing symfony/yaml (v5.4.23): Extracting archive
#0 6.083 40 packages you are using are looking for funding.
#0 6.083 Use the `composer fund` command to find out more!
#0 6.083
#0 6.083 Run composer recipes at any time to see the status of your Symfony recipes.
#0 6.083
#0 6.159 Composer plugins have been disabled for safety in this non-interactive session. Set COMPOSER_ALLOW_SUPERUSER=1 if you want to allow plugins to run as root/super user.
#0 6.159 Do not run Composer as root/super user! See https://getcomposer.org/root for details
#0 6.631 Info from https://repo.packagist.org: #StandWithUkraine
#0 6.889 ./composer.json has been updated
#0 6.929 Running composer update php-pm/php-pm php-pm/httpkernel-adapter
#0 6.936 Loading composer repositories with package information
#0 8.306 Updating dependencies
#0 8.714 Your requirements could not be resolved to an installable set of packages.
#0 8.714
#0 8.714   Problem 1
#0 8.714     - php-pm/php-pm[2.0.2, ..., 2.0.4] require ringcentral/psr7 ^1.2 -> satisfiable by ringcentral/psr7[1.2.0, 1.2.1, 1.2.2, 1.3.0].
#0 8.714     - php-pm/php-pm[2.1.0, ..., 2.1.3] require react/http ^1.0 -> satisfiable by react/http[v1.0.0, ..., 1.x-dev].
#0 8.714     - php-pm/php-pm[1.0, ..., 1.0.1] require symfony/console ^2.6|^3.0 -> found symfony/console[v2.6.0-BETA1, ..., 2.8.x-dev, v3.0.0-BETA1, ..., 3.4.x-dev] but it conflicts with your root composer.json require (5.4.*).
#0 8.714     - php-pm/php-pm[1.0.2, ..., 1.x-dev] require symfony/console ^2.6|^3.0|^4.0 -> found symfony/console[v2.6.0-BETA1, ..., 2.8.x-dev, v3.0.0-BETA1, ..., 3.4.x-dev, v4.0.0-BETA1, ..., 4.4.x-dev] but it conflicts with your root composer.json require (5.4.*).
#0 8.714     - ringcentral/psr7[1.2.0, ..., 1.3.0] require psr/http-message ~1.0 -> found psr/http-message[1.0, 1.0.1, 1.1] but the package is fixed to 2.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
#0 8.714     - react/http[v1.0.0, ..., 1.x-dev] require psr/http-message ^1.0 -> found psr/http-message[1.0, 1.0.1, 1.1] but the package is fixed to 2.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
#0 8.714     - php-pm/php-pm[2.0, ..., 2.0.1] require symfony/console ^3.4|^4 -> found symfony/console[v3.4.0-BETA1, ..., 3.4.x-dev, v4.0.0-BETA1, ..., 4.4.x-dev] but it conflicts with your root composer.json require (5.4.*).
#0 8.714     - php-pm/php-pm 2.0.3 requires symfony/error-handler ^4.4 -> found symfony/error-handler[v4.4.0-BETA1, ..., 4.4.x-dev] but the package is fixed to v5.4.23 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
#0 8.714     - php-pm/php-pm[2.2.0, ..., 2.4.0] require psr/http-message ^1.0.1 -> found psr/http-message[1.0.1, 1.1] but the package is fixed to 2.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
#0 8.714     - Root composer.json requires php-pm/php-pm * -> satisfiable by php-pm/php-pm[dev-master, 1.0, ..., 1.x-dev, 2.0, ..., 2.4.0, 9999999-dev].
#0 8.714
#0 8.714 Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
#0 8.714 Running update with --no-dev does not mean require-dev is ignored, it just means the packages will not be installed. If dev requirements are blocking the update you have to resolve those problems.
#0 8.722 You can also try re-running composer require with an explicit version constraint, e.g. "composer require php-pm/php-pm:*" to figure out if any version is installable, or "composer require php-pm/php-pm:^2.1" if you know which you need.
#0 8.722
#0 8.722 Installation failed, reverting ./composer.json and ./composer.lock to their original content.
------
Dockerfile:25
--------------------
  24 |     # Install Packages
  25 | >>> RUN curl --silent --show-error -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer && \
  26 | >>>     composer install --no-interaction --no-dev --no-autoloader --no-scripts --no-progress --ignore-platform-reqs && \
  27 | >>>     composer require php-pm/php-pm php-pm/httpkernel-adapter --update-no-dev --no-scripts --no-progress --ignore-platform-reqs && \
  28 | >>>     composer dump-autoload --optimize --no-dev --classmap-authoritative && \
  29 | >>>     composer dump-env prod --empty && \
  30 | >>>     find -type f -name '*.md' -delete;
  31 |     #   twig have Test as src code
--------------------
ERROR: failed to solve: process "/bin/sh -c curl --silent --show-error -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer &&     composer install --no-interaction --no-dev --no-autoloader --no-scripts --no-progress --ignore-platform-reqs &&     composer require php-pm/php-pm php-pm/httpkernel-adapter --update-no-dev --no-scripts --no-progress --ignore-platform-reqs &&     composer dump-autoload --optimize --no-dev --classmap-authoritative &&     composer dump-env prod --empty &&     find -type f -name '*.md' -delete;" did not complete successfully: exit code: 2
giansalex commented 1 year ago

Gracias por notificarlo, ya esta corregido. https://github.com/giansalex/lycet/commit/2375bca2a5f148e54ced711a363e3984861004b0