Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support spring boot's ServiceConnection mechanism #685

Open
joshlong opened this issue May 6, 2024 · 2 comments
Open

support spring boot's ServiceConnection mechanism #685

joshlong opened this issue May 6, 2024 · 2 comments

Comments

@joshlong
Copy link
Member

joshlong commented May 6, 2024

basically, spring boot can automatically during development create a connetion to a running docker image or to a testcontainer, allowing the user to avoid having to specify all this in application.properties during development. even better, the spring initializr can generate docker compose.yml definintiions and Testcontainers definitions for tests that point to a docker image. the result is the user goes to start.spring.io, chooses, eg, PgVectorDB, and one or both of Testcontainers or Docker Compose, and they get a compose.yml and Testcontainers tests ready to go. Even better, whrn they run their spring boot app they don't need to specify connectivity credentials in application.properties.

@eddumelendez
Copy link
Contributor

Hi Josh, Testcontainers Service Connection support is already there for Ollama, ChromaDB, Milvus, Qdrant and Weaviate. See https://docs.spring.io/spring-ai/reference/1.0-SNAPSHOT/api/testcontainers.html#_service_connections

@eddumelendez
Copy link
Contributor

For Docker Compose, see #733

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

No branches or pull requests

2 participants