-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #300 from therobfonz/add-couchbase
Add Couchbase to database services
- Loading branch information
Showing
1 changed file
with
40 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?php | ||
|
||
namespace App\Services; | ||
|
||
class Couchbase extends BaseService | ||
{ | ||
protected static $category = Category::DATABASE; | ||
|
||
protected $imageName = 'couchbase'; | ||
protected $defaultPrompts = [ | ||
[ | ||
'shortname' => 'ports', | ||
'prompt' => 'Which port(s) would you like %s to use? (Must be 6 ports)', | ||
'default' => '8091-8096', | ||
], | ||
[ | ||
'shortname' => 'tag', | ||
'prompt' => 'Which tag (version) of %s would you like to use?', | ||
'default' => 'latest', | ||
], | ||
[ | ||
'shortname' => 'encrypted_ports', | ||
'prompt' => 'Which encrypted port(s) would you like %s to use? (Must be 2 ports)', | ||
'default' => '11210-11211', | ||
], | ||
[ | ||
'shortname' => 'volume', | ||
'prompt' => 'What is the Docker volume name?', | ||
'default' => 'couchbase_data', | ||
], | ||
]; | ||
|
||
protected $dockerRunTemplate = '-d \ | ||
-p "${:ports}":8091-8096 \ | ||
-p "${:encrypted_ports}":11210-11211 \ | ||
-v "${:volume}":/opt/couchbase/var \ | ||
"${:image_name}":"${:tag}"'; | ||
|
||
protected static $displayName = 'Couchbase'; | ||
} |