ssh timeout + docker install

This commit is contained in:
Andras Bacsai 2023-05-02 19:15:17 +02:00
parent 58d51dd128
commit 910e8279a0
3 changed files with 7 additions and 3 deletions

View File

@ -26,8 +26,9 @@ class Form extends Component
public function installDocker() public function installDocker()
{ {
$config = base64_encode('{ "live-restore": true }'); $config = base64_encode('{ "live-restore": true }');
runRemoteCommandSync($this->server, ["mkdir -p /etc/docker/", "touch /etc/docker/daemon.json", "echo '{$config}' | base64 -d > /etc/docker/daemon.json"]); runRemoteCommandSync($this->server, [
runRemoteCommandSync($this->server, ['sh -c "$(curl --silent -fsSL https://get.docker.com)"']); "curl https://releases.rancher.com/install-docker/23.0.sh | sh"
]);
} }
public function checkConnection() public function checkConnection()
{ {

View File

@ -78,6 +78,7 @@ if (!function_exists('generateSshCommand')) {
$ssh_command .= "-i {$private_key_location} " $ssh_command .= "-i {$private_key_location} "
. '-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null ' . '-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null '
. '-o PasswordAuthentication=no ' . '-o PasswordAuthentication=no '
. '-o ConnectTimeout=3600 '
. '-o RequestTTY=no ' . '-o RequestTTY=no '
. '-o LogLevel=ERROR ' . '-o LogLevel=ERROR '
. "-p {$port} " . "-p {$port} "

View File

@ -45,7 +45,9 @@ function coolify-root {
function vite { function vite {
bash vendor/bin/spin exec vite bash bash vendor/bin/spin exec vite bash
} }
function build-builder {
act -W .github/workflows/coolify-builder.yml --secret-file .env.secrets
}
function default { function default {
help help
} }