Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to launch the Demo Docker instlal #1712

Closed
TristanPouliquen opened this issue Dec 8, 2020 · 5 comments
Closed

Unable to launch the Demo Docker instlal #1712

TristanPouliquen opened this issue Dec 8, 2020 · 5 comments

Comments

@TristanPouliquen
Copy link

API Platform version(s) affected: The one gotten by the github generate tool

Description
I've generated a repository (https://github.com/TristanPouliquen/api-platform-demo) with the https://github.com/api-platform/api-platform/generate URL given in the Get started documentation.

Running docker-compose pull works allright, but when I run docker-compose up, I get the following error:

Step 16/32 : RUN set -eux; 	composer install --ignore-platform-req=php --prefer-dist --no-dev --no-scripts --no-progress; 	composer clear-cache
 ---> Running in e478315177a6
+ composer install '--ignore-platform-req=php' --prefer-dist --no-dev --no-scripts --no-progress
Deprecation Notice: Required parameter $path follows optional parameter $schema in phar:///usr/bin/composer/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/UndefinedConstraint.php:62
Deprecation Notice: Required parameter $path follows optional parameter $schema in phar:///usr/bin/composer/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/UndefinedConstraint.php:108
Deprecation Notice: Method ReflectionParameter::getClass() is deprecated in phar:///usr/bin/composer/src/Composer/Repository/RepositoryManager.php:130
Deprecation Notice: Method ReflectionParameter::getClass() is deprecated in phar:///usr/bin/composer/src/Composer/Repository/RepositoryManager.php:130

                                                          
  [Symfony\Component\Console\Exception\RuntimeException]  
  The "--ignore-platform-req" option does not exist.      
                                                          

install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--] [<packages>]...

ERROR: Service 'php' failed to build: The command '/bin/sh -c set -eux; 	composer install --ignore-platform-req=php --prefer-dist --no-dev --no-scripts --no-progress; 	composer clear-cache' returned a non-zero code: 1

How to reproduce

  1. Generate a repository from API Platform
  2. Clone it on your computer
  3. Run docker-compose pull & docker-compose up
@dunglas
Copy link
Member

dunglas commented Dec 8, 2020

That weird, can you do docker-compose pull and try again?

@TristanPouliquen
Copy link
Author

No change after multiple docker-compose pull on my side sadly.

@JeanCapelle
Copy link

Same issue

+ composer install '--ignore-platform-req=php' --prefer-dist --no-dev --no-scripts --no-progress
Deprecation Notice: Required parameter $path follows optional parameter $schema in phar:///usr/bin/composer/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/UndefinedConstraint.php:62
Deprecation Notice: Required parameter $path follows optional parameter $schema in phar:///usr/bin/composer/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/UndefinedConstraint.php:108
Deprecation Notice: Method ReflectionParameter::getClass() is deprecated in phar:///usr/bin/composer/src/Composer/Repository/RepositoryManager.php:130
Deprecation Notice: Method ReflectionParameter::getClass() is deprecated in phar:///usr/bin/composer/src/Composer/Repository/RepositoryManager.php:130

                                                          
  [Symfony\Component\Console\Exception\RuntimeException]  
  The "--ignore-platform-req" option does not exist.     

Personnaly, I've just git clone from master (Merge pull request #1710 from TorbenKoehn/patch-1)

@dunglas
Copy link
Member

dunglas commented Dec 9, 2020

That's weird because this option exists. I'll take a look.

@dunglas
Copy link
Member

dunglas commented Dec 15, 2020

This error only occurs if you have an outdated composer image. Run docker pull composer:latest to fix the issue.

@dunglas dunglas closed this as completed Dec 15, 2020
maks-rafalko added a commit to infection/infection that referenced this issue Aug 7, 2021
…1544)

* Allow Infection test suite to be executed in parallel using Paratest

2 goals here:

1. This is much faster (5 seconds for `vendor/bin/paratest` instead of 24 seconds for `vendor/bin/phpunit`)
2. This is the first step for supporting new Test Framework Adapter - Paratest, to run initial tests suite run using `paratest` instead of `phpunit`

For now, just for the local usage

* Fix test, add the expected makefile help output for `test-unit-parallel`

* Set min version of `thecodingmachine/safe` to 1.1.3 because of thecodingmachine/safe#225 (fixed in 1.1.3)

* Set min version of `justinrainbow/json-schema` to 5.2.10 because of api-platform/api-platform#1712

* Call `$process->inheritEnvironmentVariables();` only when it exists and is not deprecated

Otherwise, it does not make sense because starting from `syfmony/console` 4.4 environment variable are inhereted automatically, and calling deprecated methods fails the tests

* Fix help text indentation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants