Skip to content

Commit 65cd741

Browse files
authored
Merge pull request #370 from tcampbPPU/main
Add initial admin password prompt to OpenSearch service
2 parents 3b20251 + 423296f commit 65cd741

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

app/Services/OpenSearch.php

+6
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,17 @@ class OpenSearch extends BaseService
2525
'prompt' => 'Disable security plugin (true or false)?',
2626
'default' => 'true',
2727
],
28+
[
29+
'shortname' => 'password',
30+
'prompt' => 'What is the initial admin password?',
31+
'default' => 'admin',
32+
],
2833
];
2934

3035
protected $dockerRunTemplate = '-p "${:port}":9200 \
3136
-p "${:analyzer_port}":9600 \
3237
-e DISABLE_SECURITY_PLUGIN="${:disable_security}" \
38+
-e OPENSEARCH_INITIAL_ADMIN_PASSWORD="${:password}" \
3339
-e "discovery.type=single-node" \
3440
-v "${:volume}":/usr/share/opensearch/data \
3541
"${:organization}"/"${:image_name}":"${:tag}"';

tests/Feature/DockerTagsTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function it_sorts_the_versions_naturally()
4949
$tags = collect($dockerTags->getTags());
5050

5151
$this->assertEquals('latest', $tags->shift());
52-
$this->assertEquals('17.2', $tags->shift());
52+
$this->assertEquals('17.4', $tags->shift());
5353
}
5454

5555
/**

0 commit comments

Comments
 (0)