Skip to content

Commit

Permalink
Merge pull request #344 from tighten/tm/pgvector
Browse files Browse the repository at this point in the history
Adds pgvector
  • Loading branch information
tonysm authored Jun 14, 2024
2 parents 0bc07ac + b09ed43 commit fcfbc6d
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
30 changes: 30 additions & 0 deletions app/Services/PGVector.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?php

namespace App\Services;

class PGVector extends BaseService
{
protected static $displayName = 'PGVector';
protected static $category = Category::DATABASE;

protected $organization = 'pgvector';
protected $imageName = 'pgvector';
protected $defaultPort = 5432;
protected $prompts = [
[
'shortname' => '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}"';
}
2 changes: 1 addition & 1 deletion tests/Feature/DockerTagsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit fcfbc6d

Please sign in to comment.