Skip to content

Commit

Permalink
Set the default tag to latest-16-alpine, same one as Sail uses
Browse files Browse the repository at this point in the history
  • Loading branch information
tonysm committed Jun 16, 2023
1 parent 2631ddb commit 270a240
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion app/Services/Soketi.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@

namespace App\Services;

use App\Shell\Docker;
use App\Shell\Environment;
use App\Shell\QuayDockerTags;
use App\Shell\Shell;

class Soketi extends BaseService
{
Expand All @@ -11,7 +14,7 @@ class Soketi extends BaseService
protected $dockerTagsClass = QuayDockerTags::class;
protected $organization = 'quay.io';
protected $imageName = 'soketi/soketi';
protected $tag = 'latest';
protected $tag = 'latest-16-alpine';
protected $defaultPort = 6001;
protected $prompts = [
[
Expand All @@ -25,4 +28,17 @@ class Soketi extends BaseService
-p "${:metrics_port}":9601 \
-e METRICS_ENABLED=1 \
"${:organization}"/"${:image_name}":"${:tag}"';

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);
}
}

0 comments on commit 270a240

Please sign in to comment.