Skip to content

Commit

Permalink
Merge pull request tighten#322 from tonysm/fix/tm-soketi-default-version
Browse files Browse the repository at this point in the history
Set the default tag to latest-16-alpine, same one as Sail uses
  • Loading branch information
tonysm authored Jun 16, 2023
2 parents 2631ddb + c9b1845 commit af62493
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions 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 @@ -23,6 +26,19 @@ class Soketi extends BaseService

protected $dockerRunTemplate = '-p "${:port}":6001 \
-p "${:metrics_port}":9601 \
-e METRICS_ENABLED=1 \
-e SOKETI_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 af62493

Please sign in to comment.