fix: disable dockerfile based healtcheck for now

This commit is contained in:
Andras Bacsai
2023-09-13 12:08:44 +02:00
parent fa4f5fea8c
commit 9eba058cf7

View File

@@ -500,7 +500,7 @@ class ApplicationDeploymentJob implements ShouldQueue
$this->destination->network => [ $this->destination->network => [
'external' => true, 'external' => true,
'name' => $this->destination->network, 'name' => $this->destination->network,
'attachable' => true, 'attachable' => true
] ]
] ]
]; ];
@@ -640,6 +640,10 @@ class ApplicationDeploymentJob implements ShouldQueue
private function generate_healthcheck_commands() private function generate_healthcheck_commands()
{ {
if ($this->application->dockerfile) {
// TODO: disabled HC because there are several ways to hc a simple docker image, hard to figure out a good way. Like some docker images (pocketbase) does not have curl.
return 'exit 0';
}
if (!$this->application->health_check_port) { if (!$this->application->health_check_port) {
$this->application->health_check_port = $this->application->ports_exposes_array[0]; $this->application->health_check_port = $this->application->ports_exposes_array[0];
} }