Add ext-redis to the frankenphp base image #49

Open
opened 2026-08-25 00:50:42 +00:00 by geusebio · 0 comments
Owner

matthewbaggett/frankenphp:8.5 (the base image this repo's app/Dockerfile builds from) ships apcu but not ext-redis.

someones.computer is adding a Redis/Valkey-backed cache layer (Doctrine query/result cache chained APCu → Redis) and currently has to work around the missing extension with predis/predis (a pure-PHP client) instead of the real extension. RedisAdapter::createConnection() falls back to Predis automatically when \Redis/Relay aren't loaded, so this isn't broken, but it's slower than the native extension and is dead weight once ext-redis exists.

Please add ext-redis (via PECL, same pattern as apcu) to the frankenphp base image build.

Once it lands, someones.computer can drop predis/predis and let Symfony's RedisAdapter use the extension directly — no config change needed on that side, default_redis_provider already just takes a DSN.

`matthewbaggett/frankenphp:8.5` (the base image this repo's `app/Dockerfile` builds from) ships `apcu` but not `ext-redis`. someones.computer is adding a Redis/Valkey-backed cache layer (Doctrine query/result cache chained APCu → Redis) and currently has to work around the missing extension with `predis/predis` (a pure-PHP client) instead of the real extension. `RedisAdapter::createConnection()` falls back to Predis automatically when `\Redis`/`Relay` aren't loaded, so this isn't broken, but it's slower than the native extension and is dead weight once `ext-redis` exists. Please add `ext-redis` (via PECL, same pattern as `apcu`) to the frankenphp base image build. Once it lands, someones.computer can drop `predis/predis` and let Symfony's `RedisAdapter` use the extension directly — no config change needed on that side, `default_redis_provider` already just takes a DSN.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Grey.ooo/docker#49
No description provided.