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.

:sparkles: Install docker on alpine

Benoît de Biolley7ec1c939bfe5
diff --git a/app/Actions/Server/InstallDocker.php b/app/Actions/Server/InstallDocker.php
index 1b86cf9dd8..2256f186e0 100644
--- a/app/Actions/Server/InstallDocker.php
+++ b/app/Actions/Server/InstallDocker.php
@@ -80,14 +80,7 @@ class InstallDocker
} elseif ($supported_os_type->contains('arch')) {
$command = $command->merge([$this->getArchDockerInstallCommand()]);
} elseif ($supported_os_type->contains('alpine')) {
- $command = $command->merge([
- "echo 'Installing Prerequisites...'",
- 'apk update',
- 'command -v curl >/dev/null || apk add curl',
- 'command -v wget >/dev/null || apk add wget',
- 'command -v git >/dev/null || apk add git',
- 'command -v jq >/dev/null || apk add jq',
- ]);
+ $command = $command->merge([$this->getAlpineDockerInstallCommand()]);
} else {
$command = $command->merge([$this->getGenericDockerInstallCommand()]);
}
@@ -163,6 +156,13 @@ class InstallDocker
'systemctl start docker.service';
}
+ private function getAlpineDockerInstallCommand(): string
+ {
+ return "echo 'Installing Prerequisites...' && ".
+ 'apk update && '.
+ 'apk add docker';
+ }
+
private function getGenericDockerInstallCommand(): string
{
return 'curl -fsSL https://get.docker.com | sh';