update testing hosts

This commit is contained in:
Andras Bacsai
2023-05-15 15:13:34 +02:00
parent bdd4a24567
commit 43a4b1c9cb
11 changed files with 18 additions and 113 deletions

View File

@@ -11,7 +11,6 @@ use Illuminate\Support\Str;
class InstallProxy
{
public Collection $networks;
public function __invoke(Server $server): Activity
{
@@ -21,9 +20,9 @@ class InstallProxy
return $docker['network'];
})->unique();
if ($networks->count() === 0) {
$this->networks = collect(['coolify']);
$networks = collect(['coolify']);
}
$create_networks_command = $this->networks->map(function ($network) {
$create_networks_command = $networks->map(function ($network) {
return "docker network ls --format '{{.Name}}' | grep '^$network$' >/dev/null 2>&1 || docker network create --attachable $network > /dev/null 2>&1";
});