Merge pull request #444 from rience/custom-healthcheck-log-lines-count

Configurable Number of Lines in Healthcheck Log Output
This commit is contained in:
Donal McBreen
2023-09-13 08:57:00 +01:00
committed by GitHub
5 changed files with 15 additions and 4 deletions

View File

@@ -240,7 +240,7 @@ class ConfigurationTest < ActiveSupport::TestCase
:volume_args=>["--volume", "/local/path:/container/path"],
:builder=>{},
:logging=>["--log-opt", "max-size=\"10m\""],
:healthcheck=>{ "path"=>"/up", "port"=>3000, "max_attempts" => 7, "exposed_port" => 3999, "cord" => "/tmp/kamal-cord" }}
:healthcheck=>{ "path"=>"/up", "port"=>3000, "max_attempts" => 7, "exposed_port" => 3999, "cord" => "/tmp/kamal-cord", "log_lines" => 50 }}
assert_equal expected_config, @config.to_h
end