diff --git a/docs/modules/vearch.md b/docs/modules/vearch.md index 0ff35f506c..87f031c63f 100644 --- a/docs/modules/vearch.md +++ b/docs/modules/vearch.md @@ -38,7 +38,7 @@ When starting the Vearch container, you can pass options in a variadic way to co #### Image If you need to set a different Vearch Docker image, you can use `testcontainers.WithImage` with a valid Docker image -for Vearch. E.g. `testcontainers.WithImage("vearch/vearch:latest")`. +for Vearch. E.g. `testcontainers.WithImage("vearch/vearch:3.5.1")`. {% include "../features/common_functional_options.md" %} diff --git a/modules/vearch/examples_test.go b/modules/vearch/examples_test.go index 68cf06a1fa..aaccb5d2de 100644 --- a/modules/vearch/examples_test.go +++ b/modules/vearch/examples_test.go @@ -12,7 +12,7 @@ import ( func ExampleRunContainer() { ctx := context.Background() - vearchContainer, err := vearch.RunContainer(ctx, testcontainers.WithImage("vearch/vearch:latest")) + vearchContainer, err := vearch.RunContainer(ctx, testcontainers.WithImage("vearch/vearch:3.5.1")) if err != nil { log.Fatalf("failed to start container: %s", err) } diff --git a/modules/vearch/vearch.go b/modules/vearch/vearch.go index 59f6b4b7ea..bcb6370e23 100644 --- a/modules/vearch/vearch.go +++ b/modules/vearch/vearch.go @@ -17,7 +17,7 @@ type VearchContainer struct { // RunContainer creates an instance of the Vearch container type func RunContainer(ctx context.Context, opts ...testcontainers.ContainerCustomizer) (*VearchContainer, error) { req := testcontainers.ContainerRequest{ - Image: "vearch/vearch:latest", + Image: "vearch/vearch:3.5.1", ExposedPorts: []string{"8817/tcp", "9001/tcp"}, Cmd: []string{"-conf=/vearch/config.toml", "all"}, Privileged: true, diff --git a/modules/vearch/vearch_test.go b/modules/vearch/vearch_test.go index f0418e01de..4d074da828 100644 --- a/modules/vearch/vearch_test.go +++ b/modules/vearch/vearch_test.go @@ -12,7 +12,7 @@ import ( func TestVearch(t *testing.T) { ctx := context.Background() - container, err := vearch.RunContainer(ctx, testcontainers.WithImage("vearch/vearch:latest")) + container, err := vearch.RunContainer(ctx, testcontainers.WithImage("vearch/vearch:3.5.1")) if err != nil { t.Fatal(err) }