Skip to content

Commit 66a55a8

Browse files
authored
chore(ollama): bump default version to 0.5.7 (#2966)
1 parent a915813 commit 66a55a8

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

docs/features/wait/log.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Using regular expression with submatch:
4040
```golang
4141
var host, port string
4242
req := ContainerRequest{
43-
Image: "ollama/ollama:0.1.25",
43+
Image: "ollama/ollama:0.5.7",
4444
ExposedPorts: []string{"11434/tcp"},
4545
WaitingFor: wait.ForLog(`Listening on (.*:\d+) \(version\s(.*)\)`).Submatch(func(pattern string, submatches [][][]byte) error {
4646
var err error

docs/modules/ollama.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ When starting the Ollama container, you can pass options in a variadic way to co
5151
#### Image
5252

5353
If you need to set a different Ollama Docker image, you can set a valid Docker image as the second argument in the `Run` function.
54-
E.g. `Run(context.Background(), "ollama/ollama:0.1.25")`.
54+
E.g. `Run(context.Background(), "ollama/ollama:0.5.7")`.
5555

5656
#### Use Local
5757

@@ -65,7 +65,7 @@ E.g. `Run(context.Background(), "ollama/ollama:0.1.25")`.
6565
If you need to run the local Ollama binary, you can set the `UseLocal` option in the `Run` function.
6666
This option accepts a list of environment variables as a string, that will be applied to the Ollama binary when executing commands.
6767

68-
E.g. `Run(context.Background(), "ollama/ollama:0.1.25", WithUseLocal("OLLAMA_DEBUG=true"))`.
68+
E.g. `Run(context.Background(), "ollama/ollama:0.5.7", WithUseLocal("OLLAMA_DEBUG=true"))`.
6969

7070
All the container methods are available when using the local Ollama binary, but will be executed locally instead of inside the container.
7171
Please consider the following differences when using the local Ollama binary:

modules/ollama/examples_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ func ExampleRun() {
1818
// runOllamaContainer {
1919
ctx := context.Background()
2020

21-
ollamaContainer, err := tcollama.Run(ctx, "ollama/ollama:0.1.25")
21+
ollamaContainer, err := tcollama.Run(ctx, "ollama/ollama:0.5.7")
2222
defer func() {
2323
if err := testcontainers.TerminateContainer(ollamaContainer); err != nil {
2424
log.Printf("failed to terminate container: %s", err)
@@ -46,7 +46,7 @@ func ExampleRun_withModel_llama2_http() {
4646
// withHTTPModelLlama2 {
4747
ctx := context.Background()
4848

49-
ollamaContainer, err := tcollama.Run(ctx, "ollama/ollama:0.1.25")
49+
ollamaContainer, err := tcollama.Run(ctx, "ollama/ollama:0.5.7")
5050
defer func() {
5151
if err := testcontainers.TerminateContainer(ollamaContainer); err != nil {
5252
log.Printf("failed to terminate container: %s", err)
@@ -107,7 +107,7 @@ func ExampleRun_withModel_llama2_langchain() {
107107
// withLangchainModelLlama2 {
108108
ctx := context.Background()
109109

110-
ollamaContainer, err := tcollama.Run(ctx, "ollama/ollama:0.1.25")
110+
ollamaContainer, err := tcollama.Run(ctx, "ollama/ollama:0.5.7")
111111
defer func() {
112112
if err := testcontainers.TerminateContainer(ollamaContainer); err != nil {
113113
log.Printf("failed to terminate container: %s", err)

modules/ollama/ollama.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515
)
1616

1717
// Deprecated: it will be removed in the next major version.
18-
const DefaultOllamaImage = "ollama/ollama:0.1.25"
18+
const DefaultOllamaImage = "ollama/ollama:0.5.7"
1919

2020
// OllamaContainer represents the Ollama container type used in the module
2121
type OllamaContainer struct {
@@ -79,7 +79,7 @@ func (c *OllamaContainer) Commit(ctx context.Context, targetImage string) error
7979
// Deprecated: use Run instead
8080
// RunContainer creates an instance of the Ollama container type
8181
func RunContainer(ctx context.Context, opts ...testcontainers.ContainerCustomizer) (*OllamaContainer, error) {
82-
return Run(ctx, "ollama/ollama:0.1.25", opts...)
82+
return Run(ctx, "ollama/ollama:0.5.7", opts...)
8383
}
8484

8585
// Run creates an instance of the Ollama container type

modules/ollama/ollama_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import (
1919
func TestOllama(t *testing.T) {
2020
ctx := context.Background()
2121

22-
ctr, err := ollama.Run(ctx, "ollama/ollama:0.1.25")
22+
ctr, err := ollama.Run(ctx, "ollama/ollama:0.5.7")
2323
testcontainers.CleanupContainer(t, ctr)
2424
require.NoError(t, err)
2525

@@ -98,7 +98,7 @@ func TestRunContainer_withModel_error(t *testing.T) {
9898

9999
ollamaContainer, err := ollama.Run(
100100
ctx,
101-
"ollama/ollama:0.1.25",
101+
"ollama/ollama:0.5.7",
102102
)
103103
testcontainers.CleanupContainer(t, ollamaContainer)
104104
require.NoError(t, err)

0 commit comments

Comments
 (0)