Skip to content

Commit fcfbc6d

Browse files
authored
Merge pull request #344 from tighten/tm/pgvector
Adds pgvector
2 parents 0bc07ac + b09ed43 commit fcfbc6d

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed

app/Services/PGVector.php

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?php
2+
3+
namespace App\Services;
4+
5+
class PGVector extends BaseService
6+
{
7+
protected static $displayName = 'PGVector';
8+
protected static $category = Category::DATABASE;
9+
10+
protected $organization = 'pgvector';
11+
protected $imageName = 'pgvector';
12+
protected $defaultPort = 5432;
13+
protected $prompts = [
14+
[
15+
'shortname' => 'volume',
16+
'prompt' => 'What is the Docker volume name?',
17+
'default' => 'pgvector_data',
18+
],
19+
[
20+
'shortname' => 'root_password',
21+
'prompt' => 'What will the password for the `postgres` user be?',
22+
'default' => 'password',
23+
],
24+
];
25+
26+
protected $dockerRunTemplate = '-p "${:port}":5432 \
27+
-e POSTGRES_PASSWORD="${:root_password}" \
28+
-v "${:volume}":/var/lib/postgresql/data \
29+
"${:organization}"/"${:image_name}":"${:tag}"';
30+
}

tests/Feature/DockerTagsTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function it_sorts_the_versions_naturally()
4242
$tags = collect($dockerTags->getTags());
4343

4444
$this->assertEquals('latest', $tags->shift());
45-
$this->assertEquals('16.2', $tags->shift());
45+
$this->assertEquals('16.3', $tags->shift());
4646
}
4747

4848
/** @test */

0 commit comments

Comments
 (0)