Commit Graph

46 Commits

Author SHA1 Message Date
Andras Bacsai 01957f2752 feat: implement prerequisite validation and installation for server setup 2025-11-21 09:49:33 +01:00
Andras Bacsai 84b0ec1e94 Update app/Actions/Server/InstallDocker.php
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-10-28 09:31:32 +01:00
Andras Bacsai fc49b9284a Add repository-based Docker installation fallbacks for all major Linux distros
This commit adds official Docker repository installation methods as fallbacks
when Rancher and get.docker.com convenience scripts fail, providing more
reliable Docker installation across all supported operating systems.

Changes:
- Add apt repository fallback for Debian-based systems (Ubuntu, Debian, Raspbian)
  - Fixes installation on Debian 13 (Trixie) where get.docker.com fails
  - Uses VERSION_CODENAME for automatic OS version detection
- Add dnf repository fallback for RHEL-based systems (CentOS, Fedora, Rocky, AlmaLinux)
- Add zypper repository fallback for SUSE-based systems (SLES, OpenSUSE)
- Refactor installation methods into dedicated private methods for better maintainability

Installation fallback chain:
1. Rancher install-docker script (preserves version pinning)
2. Docker get.docker.com convenience script
3. Official repository method (new, most reliable)

Benefits:
- Future-proof: Works with new OS releases automatically
- Production-ready: Uses Docker's recommended installation method
- Comprehensive: Covers 95%+ of Linux servers in production
- Maintainable: Clean code structure with single-responsibility methods

Fixes issue where Debian 13 (Trixie) servers fail validation because
get.docker.com script incorrectly uses numeric version "13" instead of
codename "trixie" in repository URLs.
2025-10-26 12:41:50 +01:00
Andras Bacsai f4e5c195fe refactor: replace direct SslCertificate queries with server relationship methods for consistency 2025-10-09 17:00:05 +02:00
Andras Bacsai 393745b68c Revert "refactor(file-transfer): replace base64 encoding with direct file transfer method across multiple database actions for improved clarity and efficiency"
This reverts commit 18068857b1.
2025-09-15 17:55:08 +02:00
Andras Bacsai 18068857b1 refactor(file-transfer): replace base64 encoding with direct file transfer method across multiple database actions for improved clarity and efficiency 2025-09-08 14:04:24 +02:00
peaklabs-dev 225f24e650 chore: improve code quality suggested by code rabbit 2025-02-19 18:04:58 +01:00
peaklabs-dev a539bfd765 fix(ssl): server id 2025-02-07 18:45:12 +01:00
peaklabs-dev 836006798f fix(ssl): remove caCert even if it is a folder by accident 2025-02-07 18:28:58 +01:00
peaklabs-dev d6a39f2ed3 fix(ssl): always create ca crt on disk even if it is already there 2025-02-04 16:57:40 +01:00
peaklabs-dev a1e650e699 chore: rename ca crt folder to ssl 2025-02-03 21:42:28 +01:00
peaklabs-dev 7406ee67c2 chore(ssl): rename CA cert to coolify-ca.crt because of conflicts 2025-01-31 18:27:20 +01:00
peaklabs-dev 0915303769 feat(ssl): Add Coolify CA Certificate when adding a new server 2025-01-31 12:27:29 +01:00
Andras Bacsai 1fe4dd722b Revert "rector: arrrrr"
This reverts commit 16c0cd10d8.
2025-01-07 15:31:43 +01:00
Andras Bacsai 16c0cd10d8 rector: arrrrr 2025-01-07 14:52:08 +01:00
peaklabs-dev 408ba9cc7a fix docker minimum version 2024-11-12 13:27:26 +01:00
Andras Bacsai 275edb6c1f put a few things on high queue 2024-11-06 12:33:56 +01:00
Lucas Michot d557a22b91 Remove all ray() calls 2024-10-28 13:51:23 +01:00
Andras Bacsai c137620b81 chore: update Docker version to 26.0 2024-10-14 10:29:45 +02:00
Thijmen d86274cc37 Fix styling 2024-06-10 20:43:34 +00:00
Andras Bacsai 35b07a9c18 Refactor code to add sudo prefix for certain commands in multiple files 2024-04-17 10:49:34 +02:00
Andras Bacsai 3f9b0643ee fix: check each required binaries one-by-one 2024-04-13 16:23:44 +02:00
Andras Bacsai 32f4c6c982 Update documentation links 2024-03-27 11:07:29 +01:00
Andras Bacsai 49f5240ff8 fix: better server validation and installation process
fix: add destination to queue deployment
feat: force start deployment
2024-02-05 14:40:54 +01:00
Andras Bacsai cd7852e4f9 fix: use official install script with rancher (one will work for sure) 2023-12-01 14:02:11 +01:00
Andras Bacsai 2d7bbbe300 wip: swarm 2023-11-29 10:06:52 +01:00
Andras Bacsai 44f6d93639 Update installation script to include curl and wget 2023-11-28 13:28:15 +01:00
Andras Bacsai 1c386db41d Update Docker installation command and add support for SLES 2023-11-28 13:12:25 +01:00
Andras Bacsai f58e6766e1 Update Docker Engine version check 2023-11-21 13:06:05 +01:00
Andras Bacsai 4a21102983 fix: server adding process 2023-11-21 12:07:06 +01:00
Andras Bacsai e78b6758d8 feat: add docker engine support install script to rhel based systems 2023-11-21 11:39:19 +01:00
Andras Bacsai dcaa7a6ad7 fix: server validation process 2023-10-09 11:00:18 +02:00
Andras Bacsai 9cba0a6df3 fix: boarding again 2023-09-18 14:41:31 +02:00
Andras Bacsai df433efe62 fix: boarding 2023-09-18 11:21:10 +02:00
Andras Bacsai efa7cab3e2 fix: installDocker id not found 2023-09-18 10:44:32 +02:00
Andras Bacsai 56981d134c fix: improve startProxy action
fix: improve installDocker action and process
feat: add noSubmit prop to custom modal
2023-09-09 15:30:46 +02:00
Andras Bacsai 929a4e6474 fix: coolify already exists should not throw error 2023-09-08 18:40:25 +02:00
Andras Bacsai a4b44bacc1 updates 2023-09-05 15:43:56 +02:00
Andras Bacsai b4a3236284 fix 2023-08-28 20:52:45 +02:00
Andras Bacsai c21ce45d70 show public key of generated private key 2023-08-27 15:23:47 +02:00
Andras Bacsai d62af76097 update boarding flow 2023-08-23 10:14:39 +02:00
Andras Bacsai 3d8024b0d9 fix 2023-06-23 09:58:15 +02:00
Andras Bacsai cbfc490d95 fix 2023-06-15 13:28:16 +02:00
Andras Bacsai e9a2310f62 remove default value 2023-05-25 15:48:26 +02:00
Andras Bacsai 167379b0e0 fix 2023-05-24 15:25:08 +02:00
Andras Bacsai ac976d0f3a fixes 2023-05-04 09:11:11 +02:00