Skip to content

Conversation

hesehus-bizzkit-mibu
Copy link

What does this PR do?

This PR adds support for DragonflyDb as a Testcontainer module. DragonflyDb is a Redis-compatible in-memory datastore that can serve as a drop-in replacement for Redis.

Implementation

DragonflyDbBuilder: Container builder with default configuration (docker.dragonflydb.io/dragonflydb/dragonfly image, port 6379, health check wait strategy)
DragonflyDbContainer: Container class with Redis-compatible connection string generation and Lua script execution support
DragonflyDbConfiguration: The implementation follows the exact same patterns as the existing Redis module, leveraging DragonflyDb's Redis compatibility (same port, same CLI tools).

Why is it important?

DragonflyDb is gaining significant adoption as a high-performance alternative to Redis.

Adding DragonflyDb support to testcontainers-dotnet enables developers to:

  • Test applications against DragonflyDb in their integration tests
  • Validate Redis-to-DragonflyDb migrations
  • This fills a gap in the testcontainers ecosystem and supports the growing DragonflyDb community.

How to test this PR

  • Run DragonflyDb-specific tests: dotnet test Testcontainers.DragonflyDb.Tests
  • Manual verification:
    var container = new DragonflyDbBuilder().Build();
    await container.StartAsync();
    var connectionString = container.GetConnectionString();
    // Use with any Redis-compatible client

Added DragonflyDb Testcontainers
Copy link

netlify bot commented Sep 29, 2025

Deploy Preview for testcontainers-dotnet ready!

Name Link
🔨 Latest commit 740755e
🔍 Latest deploy log https://app.netlify.com/projects/testcontainers-dotnet/deploys/68da4c618cab2c0008bcc8ea
😎 Deploy Preview https://deploy-preview-1538--testcontainers-dotnet.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@HofmeisterAn HofmeisterAn added enhancement New feature or request module An official Testcontainers module labels Sep 30, 2025
@HofmeisterAn HofmeisterAn force-pushed the develop branch 3 times, most recently from 4900ecd to 8fa5f1b Compare October 3, 2025 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request module An official Testcontainers module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants