How playtikaoss/testcontainers-spring-boot works
Main Components
a. Core Framework Layer:
• TestContainers Common Module (Base functionality)
• Spring Boot Auto-configuration Integration
• Docker Integration Layer
b. Service Modules Layer (Group by category):
• Databases (MySQL, PostgreSQL, MongoDB, etc.)
• Message Brokers (Kafka, RabbitMQ, NATS)
• Caches (Redis, Aerospike)
• Search Engines (Elasticsearch, OpenSearch)
• Cloud Services (Google PubSub, LocalStack)
• Security (Keycloak, Vault)
• Monitoring (Prometheus, Grafana)
c. Configuration Management:
• Properties Management
• Bootstrap Configuration
• Container Lifecycle Management
Relationships
a. Core Dependencies:
• How TestContainers Common is the foundation
• Spring Boot integration points
• Docker runtime dependency
b. Module Dependencies:
• Each service module depends on common module
• Optional ToxiProxy integration for network simulation
• Container configuration flow
┌─────────────────────────────────────────────┐
• Spring Boot App │
• ┬─────────────────────────┘
┌───────────────────▼─────────────────────────┐
• TestContainers Spring Boot Core │
• ┤
• Container Lifecycle Management │
• Properties Management │
• Bootstrap Configuration │
• ┬─────────────────────────┘
• ┌───────────┴──────────┐
┌───────▼──────┐ ┌─────────▼────────┐
• Docker │ │ Service Modules │
• Runtime │ │ (Grouped by type) │
• ┘ └──────────────────┘
Implementation Details
a. Configuration Flow:
• How properties are loaded from application.properties/bootstrap.properties
• Auto-configuration activation process
• Container startup sequence
b. Integration Points:
• Spring Boot auto-configuration hooks
• Docker container management
• Service-specific configuration
Additional Elements
• Version compatibility matrix
• Optional ToxiProxy integration points
• Configuration property flow
Technical Details
Technical aspects:
• Spring Boot auto-configuration mechanism
• Docker container management
• Property management system
• Test lifecycle integration