Skip to content

Conversation

@negatic
Copy link

@negatic negatic commented Oct 8, 2025

Preview

This PR adds comprehensive support for StarRocks database containers to testcontainers-python, enabling developers to easily spin up StarRocks instances for testing and development purposes.

Changes Made

  • StarRocksContainer class extending DbContainer
  • Support for StarRocks all-in-one Ubuntu image (3.5.3)
  • Configurable ports for different StarRocks services (query, HTTP, RPC, edit log, heartbeat)
  • MySQL-compatible connection using PyMySQL driver
  • Environment variable support for credentials (STARROCKS_USER, STARROCKS_PASSWORD)
  • Automatic database creation on container startup

Tests

  • Health check test via HTTP API endpoint
  • SQLAlchemy integration test with version verification
  • Proper test isolation and cleanup

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant