ssh timeout + docker install
This commit is contained in:
parent
58d51dd128
commit
910e8279a0
@ -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()
|
||||||
{
|
{
|
||||||
|
@ -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} "
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user