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}"'; +} 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 */