From 75953877ba3a0eb9948947c2e8ee1324a65bd8e8 Mon Sep 17 00:00:00 2001 From: Tony Messias Date: Fri, 14 Jun 2024 01:12:15 -0300 Subject: [PATCH 1/2] Adds pgvector --- app/Services/PGVector.php | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 app/Services/PGVector.php diff --git a/app/Services/PGVector.php b/app/Services/PGVector.php new file mode 100644 index 0000000..b043469 --- /dev/null +++ b/app/Services/PGVector.php @@ -0,0 +1,30 @@ + 'volume', + 'prompt' => 'What is the Docker volume name?', + 'default' => 'pgvector_data', + ], + [ + 'shortname' => 'root_password', + 'prompt' => 'What will the password for the `postgres` user be?', + 'default' => 'password', + ], + ]; + + protected $dockerRunTemplate = '-p "${:port}":5432 \ + -e POSTGRES_PASSWORD="${:root_password}" \ + -v "${:volume}":/var/lib/postgresql/data \ + "${:organization}"/"${:image_name}":"${:tag}"'; +} From b09ed43c7074c8ea5e8ef051d941e057c71d08e7 Mon Sep 17 00:00:00 2001 From: Tony Messias Date: Fri, 14 Jun 2024 11:06:36 -0300 Subject: [PATCH 2/2] Fix docker image tag version --- tests/Feature/DockerTagsTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Feature/DockerTagsTest.php b/tests/Feature/DockerTagsTest.php index 64c54a0..796d4c4 100644 --- a/tests/Feature/DockerTagsTest.php +++ b/tests/Feature/DockerTagsTest.php @@ -42,7 +42,7 @@ function it_sorts_the_versions_naturally() $tags = collect($dockerTags->getTags()); $this->assertEquals('latest', $tags->shift()); - $this->assertEquals('16.2', $tags->shift()); + $this->assertEquals('16.3', $tags->shift()); } /** @test */