Skip to content

Commit 49f599d

Browse files
authored
Merge pull request #369 from tighten/tm/laravel-reverb
Adds a Reverb Service
2 parents 3d84c62 + deab3b2 commit 49f599d

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

app/Services/Reverb.php

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
<?php
2+
3+
namespace App\Services;
4+
5+
class Reverb extends BaseService
6+
{
7+
protected static $category = Category::SOCKET;
8+
9+
protected $organization = 'tighten';
10+
protected $imageName = 'takeout-reverb-server';
11+
protected $tag = 'latest';
12+
protected $defaultPort = 6001;
13+
protected $prompts = [
14+
[
15+
'shortname' => 'dashboard_port',
16+
'prompt' => 'Pulse Dashboard Port',
17+
'default' => '9601',
18+
],
19+
[
20+
'shortname' => 'app_id',
21+
'prompt' => 'Reverb App ID',
22+
'default' => 'app-id',
23+
],
24+
[
25+
'shortname' => 'app_key',
26+
'prompt' => 'Reverb App Key',
27+
'default' => 'app-key',
28+
],
29+
[
30+
'shortname' => 'app_secret',
31+
'prompt' => 'Reverb App Secret',
32+
'default' => 'app-secret',
33+
],
34+
];
35+
36+
protected $dockerRunTemplate = '-p "${:port}":6001 \
37+
-p "${:dashboard_port}":9601 \
38+
-e REVERB_APP_KEY="${:app_key}" \
39+
-e REVERB_APP_SECRET="${:app_secret}" \
40+
-e REVERB_APP_ID="${:app_id}" \
41+
-e REVERB_SERVER_HOST="0.0.0.0" \
42+
-e REVERB_SERVER_PORT="${:port}" \
43+
-e REVERB_HOST="0.0.0.0" \
44+
-e REVERB_PORT="${:port}" \
45+
-e REVERB_SCHEME="http" \
46+
"${:organization}"/"${:image_name}":"${:tag}"';
47+
48+
protected function shellCommand(): string
49+
{
50+
return 'sh';
51+
}
52+
}

0 commit comments

Comments
 (0)