-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into tm/docker-install
- Loading branch information
Showing
20 changed files
with
388 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<?php | ||
|
||
namespace App\Services; | ||
|
||
use App\Shell\GitHubDockerTags; | ||
|
||
class Buggregator extends BaseService | ||
{ | ||
protected static $category = Category::TOOLS; | ||
|
||
protected $dockerTagsClass = GitHubDockerTags::class; | ||
protected $organization = 'ghcr.io'; | ||
protected $imageName = 'buggregator/server'; | ||
protected $tag = 'latest'; | ||
protected $defaultPort = 8000; | ||
protected $prompts = [ | ||
[ | ||
'shortname' => 'smtp_port', | ||
'prompt' => 'What is the SMTP port?', | ||
'default' => '1025', | ||
], | ||
[ | ||
'shortname' => 'var_dumper_port', | ||
'prompt' => 'What is the VarDumper server port?', | ||
'default' => '9912', | ||
], | ||
[ | ||
'shortname' => 'monolog_port', | ||
'prompt' => 'What is the Monolog port?', | ||
'default' => '9913', | ||
], | ||
[ | ||
'shortname' => 'network_alias', | ||
'prompt' => 'What network alias to you want to assign to this container? This alias can be used by other services on the same network.', | ||
'default' => 'buggregator', | ||
], | ||
]; | ||
|
||
protected $dockerRunTemplate = '-p "${:port}":8000 \ | ||
-p "${:smtp_port}":1025 \ | ||
-p "${:var_dumper_port}":9912 \ | ||
-p "${:monolog_port}":9913 \ | ||
--network-alias "${:network_alias}" \ | ||
"${:organization}"/"${:image_name}":"${:tag}"'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<?php | ||
|
||
namespace App\Services; | ||
|
||
use App\Shell\Docker; | ||
use App\Shell\Environment; | ||
use App\Shell\Shell; | ||
|
||
class Timescale extends BaseService | ||
{ | ||
protected static $category = Category::DATABASE; | ||
|
||
protected $organization = 'timescale'; | ||
protected $imageName = 'timescaledb'; | ||
protected $tag = 'latest-pg16'; | ||
protected $defaultPort = 5432; | ||
protected $prompts = [ | ||
[ | ||
'shortname' => 'volume', | ||
'prompt' => 'What is the Docker volume name?', | ||
'default' => 'timescale_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}"'; | ||
|
||
protected static $displayName = 'Timescale'; | ||
|
||
public function __construct(Shell $shell, Environment $environment, Docker $docker) | ||
{ | ||
parent::__construct($shell, $environment, $docker); | ||
|
||
$this->defaultPrompts = array_map(function ($prompt) { | ||
if ($prompt['shortname'] === 'tag') { | ||
$prompt['default'] = $this->tag; | ||
} | ||
|
||
return $prompt; | ||
}, $this->defaultPrompts); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
|
||
namespace App\Services; | ||
|
||
class Typesense extends BaseService | ||
{ | ||
protected static $category = Category::SEARCH; | ||
|
||
protected $organization = 'typesense'; | ||
protected $imageName = 'typesense'; | ||
protected $defaultPort = 8108; | ||
protected $prompts = [ | ||
[ | ||
'shortname' => 'volume', | ||
'prompt' => 'What is the Docker volume name?', | ||
'default' => 'typesense_data', | ||
], | ||
[ | ||
'shortname' => 'admin_key', | ||
'prompt' => 'What will the admin API key be?', | ||
'default' => 'typesenseadmin', | ||
], | ||
]; | ||
|
||
protected $dockerRunTemplate = '-p "${:port}":8108 \ | ||
-v "${:volume}":/data \ | ||
"${:organization}"/"${:image_name}":"${:tag}" \ | ||
--data-dir /data \ | ||
--api-key="${:admin_key}"'; | ||
|
||
protected static $displayName = 'Typesense'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.