/claim #8154
This PR addresses Debian 13 server support and adds Alpine Linux support to the prerequisites and Docker installation flow.
After thorough code analysis, I verified that Debian 13 (trixie) is already supported by the current codebase:
OS Detection (Server.php:validateOS()):
/etc/os-release contains ID=debianSUPPORTED_OS constant includes 'ubuntu debian raspbian pop' which matches “debian”'ubuntu debian raspbian pop' which passes the contains('debian') checkDocker Installation (InstallDocker.php):
${VERSION_CODENAME} (trixie for Debian 13) for direct APT repository setupPrerequisites (InstallPrerequisites.php):
apt-get commands that work on all Debian versionsWhile investigating, I discovered that Alpine Linux is listed in SUPPORTED_OS but has no handler in:
InstallPrerequisites.php - Would throw “Unsupported OS type” exceptionInstallDocker.php - Would fall through to generic installer (less optimal)InstallPrerequisites.phpapk package manager} elseif ($supported_os_type->contains('alpine')) {
$command = $command->merge([
"echo 'Installing Prerequisites for Alpine Linux...'",
'apk update',
'apk add --no-cache curl wget git jq',
]);
}
InstallDocker.phpapkrc-update/service instead of systemctl)private function getAlpineDockerInstallCommand(): string
{
return 'apk update && apk add --no-cache docker docker-cli-compose';
}
$ docker run --rm debian:trixie cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 13 (trixie)"
VERSION_ID="13"
VERSION_CODENAME=trixie
ID=debian # ✅ Correctly identified
$ docker run --rm alpine:latest sh -c "apk update && apk add --no-cache curl wget git jq"
# ✅ Successfully installs all prerequisites
Debian 13: Connect a Debian 13 server to Coolify and verify:
Alpine Linux: Connect an Alpine server to Coolify and verify same flow
📹 Demo video will be added showing Debian 13 server successfully connecting to Coolify.
| File | Changes |
|---|---|
app/Actions/Server/InstallPrerequisites.php |
Added Alpine support, improved error message |
app/Actions/Server/InstallDocker.php |
Added Alpine support with OpenRC |
Fixes #8154
Yuvraj Angad Singh
@yuvrajangadsingh
Coolify
@coollabsio