testcontainers-python icon indicating copy to clipboard operation
testcontainers-python copied to clipboard

Add StarRocks Database Container Support

Open negatic opened this issue 2 months ago • 0 comments

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

negatic avatar Oct 08 '25 10:10 negatic