ssh timeout + docker install
This commit is contained in:
parent
58d51dd128
commit
910e8279a0
3 changed files with 7 additions and 3 deletions
|
|
@ -26,8 +26,9 @@ public function mount()
|
|||
public function installDocker()
|
||||
{
|
||||
$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, ['sh -c "$(curl --silent -fsSL https://get.docker.com)"']);
|
||||
runRemoteCommandSync($this->server, [
|
||||
"curl https://releases.rancher.com/install-docker/23.0.sh | sh"
|
||||
]);
|
||||
}
|
||||
public function checkConnection()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -78,6 +78,7 @@ function generateSshCommand(string $private_key_location, string $server_ip, str
|
|||
$ssh_command .= "-i {$private_key_location} "
|
||||
. '-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null '
|
||||
. '-o PasswordAuthentication=no '
|
||||
. '-o ConnectTimeout=3600 '
|
||||
. '-o RequestTTY=no '
|
||||
. '-o LogLevel=ERROR '
|
||||
. "-p {$port} "
|
||||
|
|
|
|||
|
|
@ -45,7 +45,9 @@ function coolify-root {
|
|||
function vite {
|
||||
bash vendor/bin/spin exec vite bash
|
||||
}
|
||||
|
||||
function build-builder {
|
||||
act -W .github/workflows/coolify-builder.yml --secret-file .env.secrets
|
||||
}
|
||||
function default {
|
||||
help
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue