Skip to content

Commit

Permalink
chore: pin vearch version (#2568)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdelapenya committed Jun 7, 2024
1 parent 392b6e5 commit e4f3811
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/modules/vearch.md
Original file line number Diff line number Diff line change
Expand Up @@ -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" %}

Expand Down
2 changes: 1 addition & 1 deletion modules/vearch/examples_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
2 changes: 1 addition & 1 deletion modules/vearch/vearch.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion modules/vearch/vearch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit e4f3811

Please sign in to comment.