Open
Description
To reproduce:
var builder = DistributedApplication.CreateBuilder(args);
// Infra:
var redisServer = builder.AddRedis(InfraConstants.RedisResourceName)
.WithImageTag("8.0.2")
.WithDataVolume()
.WithLifetime(ContainerLifetime.Persistent);
Run redis-cli -p [the-host-port]
on the host, try the command FT._LIST
, you'll get:
(error) ERR unknown command 'FT._LIST'
Redis v8 comes with built-in modules like search, JSON, etc. — the default docker-entrypoint.sh
in the official image makes sure to include the existing set of modules via the --loadmodule
flag. Aspire.Hosting.Redis
, however, doesn't.
Aspire.Hosting.Redis
should either run docker-entrypoint.sh
, or include the default set of modules, and ideally also provide a WithModule
extension method to enable fine-grained customization.