Add support to install Docker

This commit is contained in:
Benoît de Biolley 2025-07-14 11:16:44 +02:00
parent 27ebae917d
commit f707b8c0c3
No known key found for this signature in database
GPG key ID: 0289E94552874227

View file

@ -80,6 +80,15 @@ class InstallDocker
$command = $command->merge([$this->getSuseDockerInstallCommand()]);
} elseif ($supported_os_type->contains('arch')) {
$command = $command->merge([$this->getArchDockerInstallCommand()]);
} elseif ($supported_os_type->contains('alpine')) {
$command = $command->merge([
"echo 'Installing Prerequisites...'",
'zypper update -y',
'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',
]);
} else {
$command = $command->merge([$this->getGenericDockerInstallCommand()]);
}