skip to Main Content

I have a project build in gitlab.com CI that uses the php:8.0 image on dockerhub, which I can see is up to date with PHP 8.0.13. However, when my CI runs on gitlab.com, it’s using an outdated version that breaks my build:

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.

You can see here that it is using PHP 8.0.1 rather than any more recent version.

I’m not using the php:8.0 image directly, but via the edbizarro/gitlab-ci-pipeline-php image that uses the php:8.0 image as its base image in its dockerfile. I’m guessing that the problem is in here, as this package has not been updated for a while.

How can I get gitlab to use a more recent version of the image?

2

Answers


  1. Chosen as BEST ANSWER

    So the problem is that the image is outdated, and there's not much I can do about that other than create my own, which is really not something I want to do.

    Fortunately I found a solution – a different image that is a drop-in replacement, and it works perfectly. So I updated my .gitlab-ci.yml file to say:

    image: lorisleiva/laravel-docker:8.0
    

    and all tests are running and passing again.


  2. You can create your own docker image based on the original 8.0 Dockerfile from gitlab-ci-pipeline-php.

    To do that just clone the git repository, create new Dockerfile and build it. You can push it to docker hub or you can use the Gitlab’s docker registry to store your docker image and use it as base for your projects.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search