Add MongoDB Atlas support for TestContainers and Docker Compose

Implement service connection support for MongoDB Atlas using both
TestContainers and Docker Compose. This change enables easier
integration testing and local development with MongoDB Atlas.

- Leverage TestContainers 1.20.2 which introduces MongoDBAtlasLocalContainer
- Add TestContainers support using MongoDBAtlasLocalContainer
- Implement Docker Compose configuration for MongoDB Atlas
- Create connection details factories for both TestContainers and Docker Compose
- Update dependency management for MongoDB Atlas integration
- Add integration tests for both TestContainers and Docker Compose setups
- Update documentation to include MongoDB Atlas support
This commit is contained in:
Eddú Meléndez
2024-09-30 20:29:20 -06:00
committed by Mark Pollack
parent e58341a447
commit e1d9bfc616
11 changed files with 311 additions and 0 deletions

View File

@@ -34,6 +34,9 @@ The following service connection factories are provided in the `spring-ai-spring
| `ChromaConnectionDetails`
| Containers named `chromadb/chroma`, `ghcr.io/chroma-core/chroma`
| `MongoConnectionDetails`
| Containers named `mongodb/mongodb-atlas-local`
| `OllamaConnectionDetails`
| Containers named `ollama/ollama`

View File

@@ -37,6 +37,9 @@ The following service connection factories are provided in the `spring-ai-spring
| `MilvusServiceClientConnectionDetails`
| Containers of type `MilvusContainer`
| `MongoConnectionDetails`
| Containers of type `MongoDBAtlasLocalContainer`
| `OllamaConnectionDetails`
| Containers of type `OllamaContainer`