gitlab-ci-pipeline-php icon indicating copy to clipboard operation
gitlab-ci-pipeline-php copied to clipboard

PHP 8.0 image is outdated

Open Synchro opened this issue 4 years ago • 5 comments

I can see that you're using the official PHP 8.0 images, but I'm running into problems with this being outdated. It appears to install PHP 8.0.1, which means that it won't work with current Symfony components (that require at least 8.0.2), resulting in CI failures like this:

Your requirements could not be resolved to an installable set of packages.
Problem 1
  - Installation request for symfony/event-dispatcher v6.0.0 -> satisfiable by symfony/event-dispatcher[v6.0.0].
  - symfony/event-dispatcher v6.0.0 requires php >=8.0.2 -> your PHP version (8.0.1) does not satisfy that requirement.

The image this refers to on dockerhub appears to be up to date, so I guess this might be a caching issue in GitLab.

Synchro avatar Nov 30 '21 00:11 Synchro

Just tested. It doesn't seem to be a caching issue.

WilliamDEdwards avatar Nov 30 '21 16:11 WilliamDEdwards

Same problem here when trying to build a laravel project. It seems a laravel update bumped some symfony packages to the recently released 6.0.

Your requirements could not be resolved to an installable set of packages. Problem 1 - Installation request for symfony/event-dispatcher v6.0.0 -> satisfiable by symfony/event-dispatcher[v6.0.0]. - symfony/event-dispatcher v6.0.0 requires php >=8.0.2 -> your PHP version (8.0.1) does not satisfy that requirement. Problem 2 - Installation request for symfony/string v6.0.0 -> satisfiable by symfony/string[v6.0.0]. - symfony/string v6.0.0 requires php >=8.0.2 -> your PHP version (8.0.1) does not satisfy that requirement. Problem 3 - Installation request for symfony/filesystem v6.0.0 -> satisfiable by symfony/filesystem[v6.0.0]. - symfony/filesystem v6.0.0 requires php >=8.0.2 -> your PHP version (8.0.1) does not satisfy that requirement. Problem 4 - Installation request for symfony/property-info v6.0.0 -> satisfiable by symfony/property-info[v6.0.0]. - symfony/property-info v6.0.0 requires php >=8.0.2 -> your PHP version (8.0.1) does not satisfy that requirement. Problem 5 - symfony/string v6.0.0 requires php >=8.0.2 -> your PHP version (8.0.1) does not satisfy that requirement. - symfony/console v5.4.0 requires symfony/string ^5.1|^6.0 -> satisfiable by symfony/string[v6.0.0]. - Installation request for symfony/console v5.4.0 -> satisfiable by symfony/console[v5.4.0].

jeversen avatar Nov 30 '21 19:11 jeversen

I asked about this on Twitter and got some very good replies.

Synchro avatar Nov 30 '21 19:11 Synchro

I asked about this on Twitter and got some very good replies.

Thanks! Just using the lorisleiva/laravel-docker repository, excellent :D

skalero01 avatar Dec 01 '21 18:12 skalero01

Confirm, just use https://github.com/lorisleiva/laravel-docker

a-bashtannik avatar Dec 06 '21 09:12 a-bashtannik