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.
To reproduce:
Run
redis-cli -p [the-host-port]on the host, try the commandFT._LIST, you'll get:Redis v8 comes with built-in modules like search, JSON, etc. — the default
docker-entrypoint.shin the official image makes sure to include the existing set of modules via the--loadmoduleflag.Aspire.Hosting.Redis, however, doesn't.Aspire.Hosting.Redisshould either rundocker-entrypoint.sh, or include the default set of modules, and ideally also provide aWithModuleextension method to enable fine-grained customization.