Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

fix: add Arch Linux support for Docker installation

Murat Aslaneedc9e586d28
diff --git a/app/Actions/Server/InstallDocker.php b/app/Actions/Server/InstallDocker.php
index 36c5409502..3f69a55e69 100644
--- a/app/Actions/Server/InstallDocker.php
+++ b/app/Actions/Server/InstallDocker.php
@@ -78,6 +78,8 @@ class InstallDocker
$command = $command->merge([$this->getRhelDockerInstallCommand()]);
} elseif ($supported_os_type->contains('sles')) {
$command = $command->merge([$this->getSuseDockerInstallCommand()]);
+ } elseif ($supported_os_type->contains('arch')) {
+ $command = $command->merge([$this->getArchDockerInstallCommand()]);
} else {
$command = $command->merge([$this->getGenericDockerInstallCommand()]);
}
@@ -146,6 +148,14 @@ class InstallDocker
')';
}
+ private function getArchDockerInstallCommand(): string
+ {
+ return 'pacman -Syyy --noconfirm && '.
+ 'pacman -S docker docker-compose --noconfirm && '.
+ 'systemctl start docker && '.
+ 'systemctl enable docker';
+ }
+
private function getGenericDockerInstallCommand(): string
{
return "curl https://releases.rancher.com/install-docker/{$this->dockerVersion}.sh | sh || curl https://get.docker.com | sh -s -- --version {$this->dockerVersion}";