Customizable stop wait time
Configurable via a global `stop_wait_time` option. The default is `10` which matches Docker defaults.
This commit is contained in:
@@ -27,10 +27,12 @@ class Mrsk::Commands::App < Mrsk::Commands::Base
|
||||
docker :start, service_with_version_and_destination_and_role
|
||||
end
|
||||
|
||||
DEFAULT_STOP_WAIT_TIME = 10
|
||||
|
||||
def stop(version: nil)
|
||||
pipe \
|
||||
version ? container_id_for_version(version) : current_container_id,
|
||||
xargs(docker(:stop))
|
||||
xargs(docker(:stop, "-t", config.stop_wait_time || DEFAULT_STOP_WAIT_TIME))
|
||||
end
|
||||
|
||||
def info
|
||||
|
||||
Reference in New Issue
Block a user