Skip to content

Commit

Permalink
Adds a Reverb Service
Browse files Browse the repository at this point in the history
  • Loading branch information
tonysm committed Dec 19, 2024
1 parent 4c4c947 commit 2fb3347
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions app/Services/Reverb.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<?php

namespace App\Services;

class Reverb extends BaseService
{
protected static $category = Category::SOCKET;

protected $organization = 'tighten';
protected $imageName = 'takeout-reverb-server';
protected $tag = 'latest';
protected $defaultPort = 6001;
protected $prompts = [
[
'shortname' => 'dashboard_port',
'prompt' => 'Pulse Dashboard Port',
'default' => '9601',
],
[
'shortname' => 'app_id',
'prompt' => 'Reverb App ID',
'default' => 'app-id',
],
[
'shortname' => 'app_key',
'prompt' => 'Reverb App Key',
'default' => 'app-key',
],
[
'shortname' => 'app_secret',
'prompt' => 'Reverb App Secret',
'default' => 'app-secret',
],
];

protected $dockerRunTemplate = '-p "${:port}":6001 \
-p "${:dashboard_port}":9601 \
-e REVERB_APP_KEY="${:app_key}" \
-e REVERB_APP_SECRET="${:app_secret}" \
-e REVERB_APP_ID="${:app_id}" \
"${:organization}"/"${:image_name}":"${:tag}"';

protected function shellCommand(): string
{
return 'sh';
}
}

0 comments on commit 2fb3347

Please sign in to comment.