Skip to content

Commit

Permalink
Merge pull request #313 from morrislaptop/eventstore-update
Browse files Browse the repository at this point in the history
EventStoredB: use latest version, pass in params for local dev
  • Loading branch information
mattstauffer authored May 30, 2023
2 parents a921f4a + e3edd14 commit e2dd015
Showing 1 changed file with 3 additions and 23 deletions.
26 changes: 3 additions & 23 deletions app/Services/EventStoreDB.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@

namespace App\Services;

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

class EventStoreDB extends BaseService
{
protected static $category = Category::DATABASE;
Expand All @@ -26,26 +22,10 @@ class EventStoreDB extends BaseService
],
];

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'] = '5.0.8-xenial';
}
return $prompt;
}, $this->defaultPrompts);
}

/**
* The following only supports version 5.X.
*
* 20.6.0 requires various env variables to be set and forces HTTPS which is a pain in local dev.
* 20.6.1 can disable HTTPS but there's no auth which means most features are disabled.
*/
protected $dockerRunTemplate = '-p "${:port}":1113 \
-p "${:web_port}":2113 \
-v "${:volume}":/var/lib/eventstore \
"${:organization}"/"${:image_name}":"${:tag}"';
"${:organization}"/"${:image_name}":"${:tag}" \
--insecure --run-projections=All \
--enable-external-tcp --enable-atom-pub-over-http';
}

0 comments on commit e2dd015

Please sign in to comment.