docker-armada 2.5.0 → 2.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/armada/cli.rb +2 -1
- data/lib/armada/docker/container.rb +2 -2
- data/spec/docker/container_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 94c071928f455d69d8bd5ea46f533df159dd8686
|
4
|
+
data.tar.gz: 2111c88ab451971eb5cb41fb1724369f35a5af6e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f23d9f96684152737244dd7d027104980cd751a86c48dd55b140b59252b35bc31a52993113f8b5e40917de8bdf96f942ee8fddb242ea3ebc21d4177897da9a47
|
7
|
+
data.tar.gz: 6acc45b91eb2da738d37cd614944bd6c914a5c228899f6e949a9209cdf95cdf7c745b0965ef57048d4026eb687d829952976be7cffc9fb7c2d84900e58e97d82
|
data/lib/armada/cli.rb
CHANGED
@@ -36,10 +36,11 @@ module Armada
|
|
36
36
|
subcommand "clean", Armada::CleanCli
|
37
37
|
|
38
38
|
desc "stop <project> <environment>", "Stop running containers for the project in the environment. Use --force to actually stop the containers"
|
39
|
+
option :force, :type => :boolean, :aliases => :f, :desc => "Must specify the force option if you want the containers stopped", :default => false, :lazy_default => true
|
39
40
|
option :hosts, :type => :array, :aliases => :h, :desc => "The docker host(s) to deploy to. This can be a comma sepearted list."
|
40
41
|
option :ssh_gateway, :type => :string, :aliases => :G, :desc => "SSH Gateway Host"
|
41
42
|
option :ssh_gateway_user, :type => :string, :aliases => :U, :desc => "SSH Gateway User"
|
42
|
-
option :
|
43
|
+
option :volumes, :type => :boolean, :aliases => :v, :desc => "Remove the volumes associated with the container", :default => false, :lazy_default => true
|
43
44
|
def stop(project, environment)
|
44
45
|
Armada::Commands.stop(project, environment, options)
|
45
46
|
end
|
@@ -12,7 +12,7 @@ module Armada
|
|
12
12
|
|
13
13
|
now_in_ns = Integer(Time.now.to_f * 1000000.0)
|
14
14
|
@options[:binds] ||= []
|
15
|
-
@options[:binds] << "/var/log/#{@name}
|
15
|
+
@options[:binds] << "/var/log/containers/#{@name}/#{SecureRandom.uuid}:/var/log/service"
|
16
16
|
end
|
17
17
|
|
18
18
|
def stop
|
@@ -45,7 +45,7 @@ module Armada
|
|
45
45
|
def kill
|
46
46
|
return if @container.nil?
|
47
47
|
info "Stopping old container #{@container.id[0..7]} (#{@name})"
|
48
|
-
@container.kill
|
48
|
+
@container.kill :v => @options[:volumes]
|
49
49
|
end
|
50
50
|
|
51
51
|
def remove
|
@@ -34,7 +34,7 @@ describe Armada::Container do
|
|
34
34
|
it "should have the log mount" do
|
35
35
|
expect(options[:binds]).not_to be_nil
|
36
36
|
expect(options[:binds].length).to equal 1
|
37
|
-
expect(options[:binds][0]).to match /^\/var\/log\/#{container_name}
|
37
|
+
expect(options[:binds][0]).to match /^\/var\/log\/containers\/#{container_name}\/.*:\/var\/log\/service$/
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: docker-armada
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Chauncey
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2015-02-
|
13
|
+
date: 2015-02-11 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: excon
|