feat: add --redis-stack flag to dapr init for RediSearch support#1644
Open
singhvishalkr wants to merge 1 commit into
Open
feat: add --redis-stack flag to dapr init for RediSearch support#1644singhvishalkr wants to merge 1 commit into
singhvishalkr wants to merge 1 commit into
Conversation
Add a new --redis-stack flag to the dapr init command that deploys redis/redis-stack-server instead of the standard Redis container. Redis Stack bundles RediSearch which is required for Dapr Agents vector store capabilities. When --redis-stack is specified: - Uses docker.io/redis/redis-stack-server:latest for Docker Hub - Uses redis/redis-stack-server:latest for GHCR This enables Dapr Agents Redis VectorStore to work out of the box without additional configuration. Signed-off-by: Vishal Kumar Singh <vishal.kr.singh2021@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Currently dapr init deploys a standard Redis container (redis:6) that does not include RediSearch. RediSearch is required for Dapr Agents' vector store capabilities and must be explicitly loaded or bundled in a Redis distribution that includes it.
This PR adds a
--redis-stackflag to thedapr initcommand that switches the deployed Redis image toredis/redis-stack-server, which bundles Redis OSS with RediSearch and other modules pre-installed.Usage:
Changes:
redisStackDockerImageNameandredisStackGhcrImageNameconstants for the redis-stack imageredisStackfield toinitInfostructInit()function signature to accept the newredisStackparameterrunRedis()to use the redis-stack image when the flag is set--redis-stackflag to the init command with appropriate help text and exampleThe change is opt-in via the flag, so existing behavior remains unchanged for users who don't need RediSearch.
Closes #1607