Fix styling

This commit is contained in:
Thijmen
2024-06-10 20:43:34 +00:00
committed by github-actions[bot]
parent 41fb6a1fc9
commit d86274cc37
429 changed files with 5307 additions and 2831 deletions

View File

@@ -54,13 +54,13 @@ return new class extends Migration
$table->integer('health_check_retries')->default(10);
$table->integer('health_check_start_period')->default(5);
$table->string('limits_memory')->default("0");
$table->string('limits_memory_swap')->default("0");
$table->string('limits_memory')->default('0');
$table->string('limits_memory_swap')->default('0');
$table->integer('limits_memory_swappiness')->default(60);
$table->string('limits_memory_reservation')->default("0");
$table->string('limits_memory_reservation')->default('0');
$table->string('limits_cpus')->default("0");
$table->string('limits_cpuset')->nullable()->default("0");
$table->string('limits_cpus')->default('0');
$table->string('limits_cpuset')->nullable()->default('0');
$table->integer('limits_cpu_shares')->default(1024);
$table->string('status')->default('exited');

View File

@@ -31,13 +31,13 @@ return new class extends Migration
$table->integer('public_port')->nullable();
$table->text('ports_mappings')->nullable();
$table->string('limits_memory')->default("0");
$table->string('limits_memory_swap')->default("0");
$table->string('limits_memory')->default('0');
$table->string('limits_memory_swap')->default('0');
$table->integer('limits_memory_swappiness')->default(60);
$table->string('limits_memory_reservation')->default("0");
$table->string('limits_memory_reservation')->default('0');
$table->string('limits_cpus')->default("0");
$table->string('limits_cpuset')->nullable()->default("0");
$table->string('limits_cpus')->default('0');
$table->string('limits_cpuset')->nullable()->default('0');
$table->integer('limits_cpu_shares')->default(1024);
$table->timestamp('started_at')->nullable();

View File

@@ -14,7 +14,7 @@ return new class extends Migration
Schema::table('webhooks', function (Blueprint $table) {
$table->string('type')->change();
});
DB::statement("ALTER TABLE webhooks DROP CONSTRAINT webhooks_type_check");
DB::statement('ALTER TABLE webhooks DROP CONSTRAINT webhooks_type_check');
}
/**

View File

@@ -15,7 +15,6 @@ return new class extends Migration
$table->string('stripe_feedback')->nullable()->after('stripe_cancel_at_period_end');
$table->string('stripe_comment')->nullable()->after('stripe_feedback');
});
}

View File

@@ -14,7 +14,6 @@ return new class extends Migration
Schema::table('subscriptions', function (Blueprint $table) {
$table->boolean('stripe_trial_already_ended')->default(false)->after('stripe_cancel_at_period_end');
});
}

View File

@@ -28,13 +28,13 @@ return new class extends Migration
$table->integer('public_port')->nullable();
$table->text('ports_mappings')->nullable();
$table->string('limits_memory')->default("0");
$table->string('limits_memory_swap')->default("0");
$table->string('limits_memory')->default('0');
$table->string('limits_memory_swap')->default('0');
$table->integer('limits_memory_swappiness')->default(60);
$table->string('limits_memory_reservation')->default("0");
$table->string('limits_memory_reservation')->default('0');
$table->string('limits_cpus')->default("0");
$table->string('limits_cpuset')->nullable()->default("0");
$table->string('limits_cpus')->default('0');
$table->string('limits_cpuset')->nullable()->default('0');
$table->integer('limits_cpu_shares')->default(1024);
$table->timestamp('started_at')->nullable();

View File

@@ -30,13 +30,13 @@ return new class extends Migration
$table->integer('public_port')->nullable();
$table->text('ports_mappings')->nullable();
$table->string('limits_memory')->default("0");
$table->string('limits_memory_swap')->default("0");
$table->string('limits_memory')->default('0');
$table->string('limits_memory_swap')->default('0');
$table->integer('limits_memory_swappiness')->default(60);
$table->string('limits_memory_reservation')->default("0");
$table->string('limits_memory_reservation')->default('0');
$table->string('limits_cpus')->default("0");
$table->string('limits_cpuset')->nullable()->default("0");
$table->string('limits_cpus')->default('0');
$table->string('limits_cpuset')->nullable()->default('0');
$table->integer('limits_cpu_shares')->default(1024);
$table->timestamp('started_at')->nullable();

View File

@@ -30,13 +30,13 @@ return new class extends Migration
$table->integer('public_port')->nullable();
$table->text('ports_mappings')->nullable();
$table->string('limits_memory')->default("0");
$table->string('limits_memory_swap')->default("0");
$table->string('limits_memory')->default('0');
$table->string('limits_memory_swap')->default('0');
$table->integer('limits_memory_swappiness')->default(60);
$table->string('limits_memory_reservation')->default("0");
$table->string('limits_memory_reservation')->default('0');
$table->string('limits_cpus')->default("0");
$table->string('limits_cpuset')->nullable()->default("0");
$table->string('limits_cpus')->default('0');
$table->string('limits_cpuset')->nullable()->default('0');
$table->integer('limits_cpu_shares')->default(1024);
$table->timestamp('started_at')->nullable();

View File

@@ -30,13 +30,13 @@ return new class extends Migration
$table->integer('public_port')->nullable();
$table->text('ports_mappings')->nullable();
$table->string('limits_memory')->default("0");
$table->string('limits_memory_swap')->default("0");
$table->string('limits_memory')->default('0');
$table->string('limits_memory_swap')->default('0');
$table->integer('limits_memory_swappiness')->default(60);
$table->string('limits_memory_reservation')->default("0");
$table->string('limits_memory_reservation')->default('0');
$table->string('limits_cpus')->default("0");
$table->string('limits_cpuset')->nullable()->default("0");
$table->string('limits_cpus')->default('0');
$table->string('limits_cpuset')->nullable()->default('0');
$table->integer('limits_cpu_shares')->default(1024);
$table->timestamp('started_at')->nullable();

View File

@@ -15,8 +15,6 @@ return new class extends Migration
$table->string('docker_compose_custom_start_command')->nullable();
$table->string('docker_compose_custom_build_command')->nullable();
});
}

View File

@@ -49,22 +49,22 @@ return new class extends Migration
public function down(): void
{
Schema::table('applications', function (Blueprint $table) {
$table->string('limits_cpuset')->nullable()->default("0")->change();
$table->string('limits_cpuset')->nullable()->default('0')->change();
});
Schema::table('standalone_postgresqls', function (Blueprint $table) {
$table->string('limits_cpuset')->nullable()->default("0")->change();
$table->string('limits_cpuset')->nullable()->default('0')->change();
});
Schema::table('standalone_redis', function (Blueprint $table) {
$table->string('limits_cpuset')->nullable()->default("0")->change();
$table->string('limits_cpuset')->nullable()->default('0')->change();
});
Schema::table('standalone_mariadbs', function (Blueprint $table) {
$table->string('limits_cpuset')->nullable()->default("0")->change();
$table->string('limits_cpuset')->nullable()->default('0')->change();
});
Schema::table('standalone_mysqls', function (Blueprint $table) {
$table->string('limits_cpuset')->nullable()->default("0")->change();
$table->string('limits_cpuset')->nullable()->default('0')->change();
});
Schema::table('standalone_mongodbs', function (Blueprint $table) {
$table->string('limits_cpuset')->nullable()->default("0")->change();
$table->string('limits_cpuset')->nullable()->default('0')->change();
});
Application::where('limits_cpuset', null)->update(['limits_cpuset' => '0']);
StandalonePostgresql::where('limits_cpuset', null)->update(['limits_cpuset' => '0']);

View File

@@ -32,12 +32,12 @@ return new class extends Migration
$table->integer('public_port')->nullable();
$table->text('ports_mappings')->nullable();
$table->string('limits_memory')->default("0");
$table->string('limits_memory_swap')->default("0");
$table->string('limits_memory')->default('0');
$table->string('limits_memory_swap')->default('0');
$table->integer('limits_memory_swappiness')->default(60);
$table->string('limits_memory_reservation')->default("0");
$table->string('limits_memory_reservation')->default('0');
$table->string('limits_cpus')->default("0");
$table->string('limits_cpus')->default('0');
$table->string('limits_cpuset')->nullable()->default(null);
$table->integer('limits_cpu_shares')->default(1024);

View File

@@ -31,12 +31,12 @@ return new class extends Migration
$table->integer('public_port')->nullable();
$table->text('ports_mappings')->nullable();
$table->string('limits_memory')->default("0");
$table->string('limits_memory_swap')->default("0");
$table->string('limits_memory')->default('0');
$table->string('limits_memory_swap')->default('0');
$table->integer('limits_memory_swappiness')->default(60);
$table->string('limits_memory_reservation')->default("0");
$table->string('limits_memory_reservation')->default('0');
$table->string('limits_cpus')->default("0");
$table->string('limits_cpus')->default('0');
$table->string('limits_cpuset')->nullable()->default(null);
$table->integer('limits_cpu_shares')->default(1024);

View File

@@ -32,12 +32,12 @@ return new class extends Migration
$table->integer('public_port')->nullable();
$table->text('ports_mappings')->nullable();
$table->string('limits_memory')->default("0");
$table->string('limits_memory_swap')->default("0");
$table->string('limits_memory')->default('0');
$table->string('limits_memory_swap')->default('0');
$table->integer('limits_memory_swappiness')->default(60);
$table->string('limits_memory_reservation')->default("0");
$table->string('limits_memory_reservation')->default('0');
$table->string('limits_cpus')->default("0");
$table->string('limits_cpus')->default('0');
$table->string('limits_cpuset')->nullable()->default(null);
$table->integer('limits_cpu_shares')->default(1024);

View File

@@ -27,7 +27,7 @@ class ApplicationSeeder extends Seeder
'destination_id' => 0,
'destination_type' => StandaloneDocker::class,
'source_id' => 1,
'source_type' => GithubApp::class
'source_type' => GithubApp::class,
]);
Application::create([
'name' => 'Dockerfile Example',
@@ -42,7 +42,7 @@ class ApplicationSeeder extends Seeder
'destination_id' => 0,
'destination_type' => StandaloneDocker::class,
'source_id' => 0,
'source_type' => GithubApp::class
'source_type' => GithubApp::class,
]);
Application::create([
'name' => 'Pure Dockerfile Example',
@@ -60,7 +60,7 @@ class ApplicationSeeder extends Seeder
'dockerfile' => 'FROM nginx
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
'
',
]);
}
}

View File

@@ -32,7 +32,7 @@ class GitlabAppSeeder extends Seeder
'public_key' => 'dfjasiourj',
'webhook_token' => '4u3928u4y392',
'private_key_id' => 2,
'team_id' => 0
'team_id' => 0,
]);
}
}

View File

@@ -2,7 +2,6 @@
namespace Database\Seeders;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
class LocalFileVolumeSeeder extends Seeder

View File

@@ -3,7 +3,6 @@
namespace Database\Seeders;
use App\Models\OauthSetting;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
class OauthSettingSeeder extends Seeder

View File

@@ -13,26 +13,26 @@ class PrivateKeySeeder extends Seeder
public function run(): void
{
PrivateKey::create([
"id" => 0,
"team_id" => 0,
"name" => "Testing-host",
"description" => "This is a test docker container",
"private_key" => "-----BEGIN OPENSSH PRIVATE KEY-----
'id' => 0,
'team_id' => 0,
'name' => 'Testing-host',
'description' => 'This is a test docker container',
'private_key' => '-----BEGIN OPENSSH PRIVATE KEY-----
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtzc2gtZW
QyNTUxOQAAACBbhpqHhqv6aI67Mj9abM3DVbmcfYhZAhC7ca4d9UCevAAAAJi/QySHv0Mk
hwAAAAtzc2gtZWQyNTUxOQAAACBbhpqHhqv6aI67Mj9abM3DVbmcfYhZAhC7ca4d9UCevA
AAAECBQw4jg1WRT2IGHMncCiZhURCts2s24HoDS0thHnnRKVuGmoeGq/pojrsyP1pszcNV
uZx9iFkCELtxrh31QJ68AAAAEXNhaWxANzZmZjY2ZDJlMmRkAQIDBA==
-----END OPENSSH PRIVATE KEY-----
"
',
]);
PrivateKey::create([
"id" => 1,
"team_id" => 0,
"name" => "development-github-app",
"description" => "This is the key for using the development GitHub app",
"private_key" => "-----BEGIN RSA PRIVATE KEY-----
'id' => 1,
'team_id' => 0,
'name' => 'development-github-app',
'description' => 'This is the key for using the development GitHub app',
'private_key' => '-----BEGIN RSA PRIVATE KEY-----
MIIEpAIBAAKCAQEAstJo/SfYh3tquc2BA29a1X3pdPpXazRgtKsb5fHOwQs1rE04
VyJYW6QCToSH4WS1oKt6iI4ma4uivn8rnkZFdw3mpcLp2ofcoeV3YPKX6pN/RiJC
if+g8gCaFywOxy2pjXOLPZeFJSXFqc4UOymbhESUyDnMfk4/RvnubMiv3jINo4Ow
@@ -58,15 +58,15 @@ KDOflMRFj39/bOLmv9Wmct+3ArKiLtftlqkmAJTF+w7fJCiqH0s31A+OChi9PMcy
oV2PBC0CgYAXOm08kFOQA+bPBdLAte8Ga89frh6asH/Z8ucfsz9/zMMG/hhq5nF3
7TItY9Pblc2Fp805J13G96zWLX4YGyLwXXkYs+Ae7QoqjonTw7/mUDARY1Zxs9m/
a1C8EDKapCw5hAhizEFOUQKOygL8Ipn+tmEUkORYdZ8Q8cWFCv9nIw==
-----END RSA PRIVATE KEY-----",
"is_git_related" => true
-----END RSA PRIVATE KEY-----',
'is_git_related' => true,
]);
PrivateKey::create([
"id" => 2,
"team_id" => 0,
"name" => "development-gitlab-app",
"description" => "This is the key for using the development Gitlab app",
"private_key" => "asdf"
'id' => 2,
'team_id' => 0,
'name' => 'development-gitlab-app',
'description' => 'This is the key for using the development Gitlab app',
'private_key' => 'asdf',
]);
}
}

View File

@@ -15,7 +15,6 @@ use App\Models\Team;
use App\Models\User;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Process;
use Illuminate\Support\Facades\Storage;
class ProductionSeeder extends Seeder
@@ -42,7 +41,7 @@ class ProductionSeeder extends Seeder
}
if (InstanceSettings::find(0) == null) {
InstanceSettings::create([
'id' => 0
'id' => 0,
]);
}
if (GithubApp::find(0) == null) {
@@ -66,10 +65,10 @@ class ProductionSeeder extends Seeder
]);
}
if (!isCloud() && config('coolify.is_windows_docker_desktop') == false) {
if (! isCloud() && config('coolify.is_windows_docker_desktop') == false) {
echo "Checking localhost key.\n";
// Save SSH Keys for the Coolify Host
$coolify_key_name = "id.root@host.docker.internal";
$coolify_key_name = 'id.root@host.docker.internal';
$coolify_key = Storage::disk('ssh-keys')->get("{$coolify_key_name}");
if ($coolify_key) {
@@ -80,7 +79,7 @@ class ProductionSeeder extends Seeder
],
[
'name' => 'localhost\'s key',
'description' => 'The private key for the Coolify host machine (localhost).', 'private_key' => $coolify_key
'description' => 'The private key for the Coolify host machine (localhost).', 'private_key' => $coolify_key,
]
);
} else {
@@ -93,16 +92,16 @@ class ProductionSeeder extends Seeder
if (Server::find(0) == null) {
$server_details = [
'id' => 0,
'name' => "localhost",
'name' => 'localhost',
'description' => "This is the server where Coolify is running on. Don't delete this!",
'user' => 'root',
'ip' => "host.docker.internal",
'ip' => 'host.docker.internal',
'team_id' => 0,
'private_key_id' => 0
'private_key_id' => 0,
];
$server_details['proxy'] = ServerMetadata::from([
'type' => ProxyTypes::TRAEFIK_V2->value,
'status' => ProxyStatus::EXITED->value
'status' => ProxyStatus::EXITED->value,
]);
$server = Server::create($server_details);
$server->settings->is_reachable = true;
@@ -130,32 +129,32 @@ class ProductionSeeder extends Seeder
'team_id' => 0,
],
[
"name" => "Testing-host",
"description" => "This is a a docker container with SSH access",
"private_key" => "-----BEGIN OPENSSH PRIVATE KEY-----
'name' => 'Testing-host',
'description' => 'This is a a docker container with SSH access',
'private_key' => '-----BEGIN OPENSSH PRIVATE KEY-----
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtzc2gtZW
QyNTUxOQAAACBbhpqHhqv6aI67Mj9abM3DVbmcfYhZAhC7ca4d9UCevAAAAJi/QySHv0Mk
hwAAAAtzc2gtZWQyNTUxOQAAACBbhpqHhqv6aI67Mj9abM3DVbmcfYhZAhC7ca4d9UCevA
AAAECBQw4jg1WRT2IGHMncCiZhURCts2s24HoDS0thHnnRKVuGmoeGq/pojrsyP1pszcNV
uZx9iFkCELtxrh31QJ68AAAAEXNhaWxANzZmZjY2ZDJlMmRkAQIDBA==
-----END OPENSSH PRIVATE KEY-----
"
',
]
);
if (Server::find(0) == null) {
$server_details = [
'id' => 0,
'uuid' => 'coolify-testing-host',
'name' => "localhost",
'name' => 'localhost',
'description' => "This is the server where Coolify is running on. Don't delete this!",
'user' => 'root',
'ip' => "coolify-testing-host",
'ip' => 'coolify-testing-host',
'team_id' => 0,
'private_key_id' => 0
'private_key_id' => 0,
];
$server_details['proxy'] = ServerMetadata::from([
'type' => ProxyTypes::TRAEFIK_V2->value,
'status' => ProxyStatus::EXITED->value
'status' => ProxyStatus::EXITED->value,
]);
$server = Server::create($server_details);
$server->settings->is_reachable = true;

View File

@@ -10,8 +10,8 @@ class ProjectSeeder extends Seeder
public function run(): void
{
Project::create([
'name' => "My first project",
'description' => "This is a test project in development",
'name' => 'My first project',
'description' => 'This is a test project in development',
'team_id' => 0,
]);
}

View File

@@ -11,9 +11,9 @@ class ServerSeeder extends Seeder
{
Server::create([
'id' => 0,
'name' => "localhost",
'description' => "This is a test docker container in development mode",
'ip' => "coolify-testing-host",
'name' => 'localhost',
'description' => 'This is a test docker container in development mode',
'ip' => 'coolify-testing-host',
'team_id' => 0,
'private_key_id' => 0,
]);

View File

@@ -2,7 +2,6 @@
namespace Database\Seeders;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
class ServiceApplicationSeeder extends Seeder

View File

@@ -2,7 +2,6 @@
namespace Database\Seeders;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
class ServiceDatabaseSeeder extends Seeder

View File

@@ -2,7 +2,6 @@
namespace Database\Seeders;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
class ServiceSeeder extends Seeder

View File

@@ -2,7 +2,6 @@
namespace Database\Seeders;
use App\Models\Destination;
use App\Models\StandaloneDocker;
use Illuminate\Database\Seeder;

View File

@@ -3,7 +3,6 @@
namespace Database\Seeders;
use App\Models\StandaloneDocker;
use App\Models\StandalonePostgresql;
use App\Models\StandaloneRedis;
use Illuminate\Database\Seeder;

View File

@@ -2,7 +2,6 @@
namespace Database\Seeders;
use App\Models\Destination;
use App\Models\SwarmDocker;
use Illuminate\Database\Seeder;

View File

@@ -16,9 +16,9 @@ class TestTeamSeeder extends Seeder
'email' => '1@example.com',
]);
$team = Team::create([
'name' => "1@example.com",
'name' => '1@example.com',
'personal_team' => false,
'show_boarding' => true
'show_boarding' => true,
]);
$user->teams()->attach($team, ['role' => 'owner']);
@@ -28,9 +28,9 @@ class TestTeamSeeder extends Seeder
'email' => '2@example.com',
]);
$team = Team::create([
'name' => "2@example.com",
'name' => '2@example.com',
'personal_team' => false,
'show_boarding' => true
'show_boarding' => true,
]);
$user->teams()->attach($team, ['role' => 'owner']);
$user = User::factory()->create([

View File

@@ -2,7 +2,6 @@
namespace Database\Seeders;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
class WaitlistSeeder extends Seeder