Skip to content

Redis v8's default modules aren't loaded #9768

Open
@aradalvand

Description

@aradalvand

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-integrationsIssues pertaining to Aspire Integrations packagesredisIssues related to redis integrations

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions