KEMBAR78
Move ollama port to a constant and provide new `getPort` method by edeandrea · Pull Request #9623 · testcontainers/testcontainers-java · GitHub
Skip to content

Conversation

@edeandrea
Copy link
Contributor

Slight refactoring to OllamaContainer to use a constant for the port number, as well as introducing an overridable method for determining the port Ollama is running on.

I'm working on something that uses this (see quarkiverse/quarkus-langchain4j#1148) and would be nice to have this built-in.

@edeandrea edeandrea requested a review from a team December 10, 2024 16:32
@eddumelendez eddumelendez added this to the next milestone Dec 10, 2024
@eddumelendez eddumelendez changed the title Adding constant and overridable method to OllamaContainer Move ollama port to a constant and provide new getPort method Dec 10, 2024
@eddumelendez eddumelendez merged commit 426e336 into testcontainers:main Dec 10, 2024
106 checks passed
@eddumelendez
Copy link
Member

Thanks for your contribution, @edeandrea !

@eddumelendez eddumelendez modified the milestones: 1.20.4, next Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants