mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-19 12:16:21 +00:00
wip
This commit is contained in:
1 parent
53e2960ffd
commit
23cea9a130
5 files changed
+28
-11
No files matched your search
@@ -23,6 +23,12 @@ class Form extends Component
|
||||
{
|
||||
$this->server = Server::find($this->server_id);
|
||||
}
|
||||
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)"']);
|
||||
}
|
||||
public function checkConnection()
|
||||
{
|
||||
$this->uptime = runRemoteCommandSync($this->server, ['uptime']);
|
||||
|
||||
Reference in new issue
Block a user