Skip to content

Detect the Composer cache for the Laravel PHP image - #25

Merged
csandanov merged 1 commit into
2.0from
codex/detect-laravel-php-cache
Aug 22, 2026
Merged

Detect the Composer cache for the Laravel PHP image#25
csandanov merged 1 commit into
2.0from
codex/detect-laravel-php-cache

Conversation

@csandanov

Copy link
Copy Markdown
Member

Summary

knownImageCacheProfiles enumerates the Wodby PHP images that should get an automatic Composer cache mount — wodby/php, wodby/drupal-php, wodby/wordpress-php, wodby/php-apache, wodby/php-nginx — but omits wodby/laravel-php.

The effect: a Laravel pipeline running wodby ci run -s php -- composer install gets no cache mount and has to pass -v $HOME/.composer:... by hand, unlike every other PHP stack.

Found while removing those manual mounts from the boilerplate pipelines now that caching is automatic. laravel-boilerplate is the one that could not be cleaned up, because dropping its mount would have silently disabled its cache rather than switching it to the automatic one.

Validation

go test ./cmd/wodby/ci/run/ passes, with a case covering wodby/laravel-php alongside the existing per-image detection cases.

The image list that drives automatic dependency caching enumerates the Wodby
PHP images but omits wodby/laravel-php, so a Laravel pipeline running composer
against its own service image gets no cache mount and has to pass one by hand.
@csandanov
csandanov merged commit 7350f6a into 2.0 Aug 22, 2026
11 checks passed
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

Successfully merging this pull request may close these issues.

1 participant