using docker version constant as user feedback
This commit is contained in:
@@ -66,11 +66,15 @@ class Index extends Component
|
|||||||
|
|
||||||
public bool $serverReachable = true;
|
public bool $serverReachable = true;
|
||||||
|
|
||||||
|
public ?string $minDockerVersion = null;
|
||||||
|
|
||||||
public function mount()
|
public function mount()
|
||||||
{
|
{
|
||||||
if (auth()->user()?->isMember() && auth()->user()->currentTeam()->show_boarding === true) {
|
if (auth()->user()?->isMember() && auth()->user()->currentTeam()->show_boarding === true) {
|
||||||
return redirect()->route('dashboard');
|
return redirect()->route('dashboard');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$this->minDockerVersion = str(config('constants.docker_install_version'))->before('.');
|
||||||
$this->privateKeyName = generate_random_name();
|
$this->privateKeyName = generate_random_name();
|
||||||
$this->remoteServerName = generate_random_name();
|
$this->remoteServerName = generate_random_name();
|
||||||
if (isDev()) {
|
if (isDev()) {
|
||||||
|
@@ -159,7 +159,8 @@ class ValidateAndInstall extends Component
|
|||||||
$this->dispatch('refreshBoardingIndex');
|
$this->dispatch('refreshBoardingIndex');
|
||||||
$this->dispatch('success', 'Server validated.');
|
$this->dispatch('success', 'Server validated.');
|
||||||
} else {
|
} else {
|
||||||
$this->error = 'Docker Engine version is not 25+. Please install Docker manually before continuing: <a target="_blank" class="underline" href="https://docs.docker.com/engine/install/#server">documentation</a>.';
|
$requiredDockerVersion = str(config('constants.docker_install_version'))->before('.');
|
||||||
|
$this->error = 'Minimum Docker Engine version '.$requiredDockerVersion.' is not instaled. Please install Docker manually before continuing: <a target="_blank" class="underline" href="https://docs.docker.com/engine/install/#server">documentation</a>.';
|
||||||
$this->server->update([
|
$this->server->update([
|
||||||
'validation_logs' => $this->error,
|
'validation_logs' => $this->error,
|
||||||
]);
|
]);
|
||||||
|
@@ -323,7 +323,7 @@
|
|||||||
</x-slot:actions>
|
</x-slot:actions>
|
||||||
<x-slot:explanation>
|
<x-slot:explanation>
|
||||||
<p>This will install the latest Docker Engine on your server, configure a few things to be able
|
<p>This will install the latest Docker Engine on your server, configure a few things to be able
|
||||||
to run optimal.<br><br>Minimum Docker Engine version is: 26<br><br>To manually install
|
to run optimal.<br><br>Minimum Docker Engine version is: {{ $minDockerVersion }}<br><br>To manually install
|
||||||
Docker
|
Docker
|
||||||
Engine, check <a target="_blank" class="underline dark:text-warning"
|
Engine, check <a target="_blank" class="underline dark:text-warning"
|
||||||
href="https://docs.docker.com/engine/install/#server">this
|
href="https://docs.docker.com/engine/install/#server">this
|
||||||
|
Reference in New Issue
Block a user