Add destination to healthcheck containers names

This commit is contained in:
Tobias Bühlmann
2023-03-06 16:54:13 +01:00
parent 170562c7e7
commit 8b913068de
3 changed files with 42 additions and 4 deletions

View File

@@ -6,7 +6,7 @@ class Mrsk::Cli::App < Mrsk::Cli::Base
say "Start container with version #{version} using a #{MRSK.config.readiness_delay}s readiness delay (or reboot if already running)...", :magenta
cli = self
MRSK.config.roles.each do |role|
on(role.hosts) do |host|
execute *MRSK.auditor.record("Booted app version #{version}"), verbosity: :debug

View File

@@ -33,11 +33,11 @@ class Mrsk::Commands::Healthcheck < Mrsk::Commands::Base
private
def container_name
"healthcheck-#{config.service}"
[ "healthcheck", config.service, config.destination ].compact.join("-")
end
def container_name_with_version
"healthcheck-#{config.service_with_version}"
"#{container_name}-#{config.version}"
end
def container_id