This commit is contained in:
2025-03-31 15:29:07 +00:00
parent 374ce90160
commit a62565d0ad
9 changed files with 147 additions and 6 deletions

View File

@@ -7,4 +7,9 @@ use App\Data\Deployments\Plan;
interface Driver
{
public Plan $deploymentPlan { get; }
public function __construct(
public ?string $containerName = null,
public ?string $containerId = null,
);
}

View File

@@ -41,7 +41,7 @@ class Postgres17Driver implements DatabaseDriver
$runCommand .= " --name {$this->containerName}";
}
if ($this->defaultPassword) {
$runCommand .= " -e POSTGRES_PASSWORD=[!defaultpassword!]";
$runCommand .= " -e POSTGRES_PASSWORD=[!defaultPassword!]";
}
if ($this->defaultUser) {
$runCommand .= " -e POSTGRES_USER={$this->defaultUser}";