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

Move ollama port to a constant and provide new getPort method #9623

Merged
merged 2 commits into from
Dec 10, 2024

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.

Verified

This commit was signed with the committer’s verified signature.
renovate-bot Mend Renovate
@edeandrea edeandrea requested a review from a team as a code owner December 10, 2024 16:32
…ontainer.java
@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.

None yet

2 participants