Skip to content

Add a "lite" image with less tools? #458

@alexislefebvre

Description

@alexislefebvre

I use jakzal/phpqa to run only php-cs-fixer and phpstan.

And the image is quite large even if I use only 2 tools:

docker image ls
REPOSITORY                                       TAG                     IMAGE ID       CREATED         SIZE
jakzal/phpqa                                     1.111-php8.3-alpine     3b66bb8aa401   35 hours ago    667MB

It can take 17 seconds to pull it from GitHub Actions: https://github.com/liip/LiipTestFixturesBundle/actions/runs/16102695469/job/45433884403

Proposals:

  • add a lite image that contain only the 10 or 15 most used tools, we could use Packagist to estimate the popularity of each tool from its number of downloads e.g. https://packagist.org/packages/dephpend/dephpend
  • generate one image for each type of tool: https://github.com/jakzal/toolbox/tree/master/resources but it would create 16 images, that's too much. Instead, tools may be grouped in 3 or 4 groups that are relevant :
    • architecture, compatibility, documentation, metrics and refactoring
    • checkstyle, deprecation, linting, phpcs and security
    • phpstan and psalm
    • test and tools

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions