feat(ollama): support calling the Ollama local process by stevenh · Pull Request #2923 · testcontainers/testcontainers-go

@stevenh changed the title refactor(ollama): local process feat(ollama): local process

Dec 17, 2024

@stevenh stevenh changed the title feat(ollama): local process feat(ollama): refactor local process

Dec 17, 2024

mdelapenya

@stevenh stevenh marked this pull request as ready for review

December 20, 2024 18:05

@mdelapenya mdelapenya changed the title feat(ollama): refactor local process feat(ollama): support calling the Ollama local process

Dec 20, 2024

@mdelapenya @stevenh

@mdelapenya @stevenh

@mdelapenya @stevenh

@mdelapenya @stevenh

@mdelapenya @stevenh

@mdelapenya @stevenh

@mdelapenya @stevenh

@mdelapenya @stevenh

@mdelapenya @stevenh

@mdelapenya @stevenh

Refactor local process handling for Ollama using a container implementation
avoiding the wrapping methods.

This defaults to running the binary with an ephemeral port to avoid port
conflicts. This behaviour can be overridden my setting OLLAMA_HOST either
in the parent environment or in the values passed via WithUseLocal.

Improve API compatibility with:

- Multiplexed output streams
- State reporting
- Exec option processing
- WaitingFor customisation

Fix Container implementation:

- Port management
- Running checks
- Terminate processing
- Endpoint argument definition
- Add missing methods
- Consistent environment handling
Refactor local processing to use the new log sub match functionality.
Validate the container request to ensure the user configuration can be processed
and no fields that would be ignored are present.
Remove temporary simple test.
Allow the local ollama binary name to be configured using the image name.
Detail the container request supported fields.
Update local process site docs to match recent changes.
Refactor Terminate to support testcontainers.TerminateOption.

mdelapenya

mdelapenya

@stevenh

mdelapenya

This was referenced

Jan 2, 2025

mdelapenya added a commit to mdelapenya/testcontainers-go that referenced this pull request

Jan 8, 2025

mdelapenya added a commit to mdelapenya/testcontainers-go that referenced this pull request

Feb 3, 2025