docker-armada 2.13.3 → 2.13.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 177be0099cf668e4aa44eebc565c62dc518ed316
4
- data.tar.gz: f82b8307023639e8066500c7a62357cc9af2e75e
3
+ metadata.gz: d6e983153003088a3a585f182746fedce359b270
4
+ data.tar.gz: 4901f8a8d6a89e3bba255864d6994399efccbad0
5
5
  SHA512:
6
- metadata.gz: 2230f3021521bbe770ad002069a84a5cc4a4829338badc4a7473e4e88a34ce5b49ae9a54183b411500d87d824003dc3a1d98afabb86665949c99ef8e7677455f
7
- data.tar.gz: 019988986902393988155ee54c1c01202383034856e1abc99809308f7d31021c8d72effe17657b8e741749a93a5cd661f6f09ae7154d0cf7520817463b3b98c5
6
+ metadata.gz: d6631363893189ccd923dfcbb015c3ae874c3e3e7bab13c6e21598e701ce67e79895e056da49083657a02e2eb4be71d31c0a30d3779519765cd7fca963ccc8f9
7
+ data.tar.gz: e21a00c577deb155240a95fc5f6314ee9fcd3ce9f6b716757b64feedfa3ef03e5078e9334e9ef738ba909b76cbaf399581a68397d225d4248c06397547cae828
@@ -27,7 +27,7 @@ module Armada
27
27
 
28
28
  def start
29
29
  info "Creating new container for image - #{@image.name}:#{@image.tag} with image id (#{@image.id}) with container name #{@name}"
30
- container_config = Armada::Container.create_container_config(@image.id, @name, @docker_host.host, @options)
30
+ container_config = Armada::Container.create_container_config(@image.name, @name, @docker_host.host, @options)
31
31
  begin
32
32
  @container = create(container_config)
33
33
  @id = @container.id
@@ -64,6 +64,8 @@ module Armada
64
64
  host_config['PortBindings'] = options[:port_bindings] if options[:port_bindings]
65
65
  host_config['PublishAllPorts'] = true
66
66
  host_config['Privileged'] = options[:privileged] || false
67
+ host_config["RestartPolicy"] = options[:restart_policy] || nil
68
+
67
69
  host_config
68
70
  end
69
71
 
@@ -96,11 +98,6 @@ module Armada
96
98
  memo[v.split(/:/).last] = {}
97
99
  memo
98
100
  end
99
- container_config['VolumesFrom'] = 'parent'
100
- end
101
-
102
- if options[:restart_policy]
103
- container_config["RestartPolicy"] = options[:restart_policy]
104
101
  end
105
102
 
106
103
  container_config
@@ -121,8 +121,6 @@ describe Armada::Container do
121
121
  it { should include("ExposedPorts" => { "1111/tcp" => {}, "2222/udp" => {}}) }
122
122
  it { should include("Env" => ["KEY=VALUE", "HOST=hostname", "SERVICE_NAME=some_container"]) }
123
123
  it { should include("Volumes" => { "/container/log" => {} }) }
124
- it { should include("VolumesFrom" => "parent") }
125
- it { should include("RestartPolicy" => { "MaximumRetryCount" => 5, "Name" => "always" }) }
126
124
  it { should include("CreateConfigKey" => "CreateConfigValue") }
127
125
  end
128
126
 
@@ -133,6 +131,7 @@ describe Armada::Container do
133
131
  "2222/udp" => [{"HostIp" => "0.0.0.0", "HostPort" => "2222"}]}) }
134
132
  it { should include("PublishAllPorts" => true) }
135
133
  it { should include("StartConfigKey" => "StartConfigValue") }
134
+ it { should include("RestartPolicy" => { "MaximumRetryCount" => 5, "Name" => "always" }) }
136
135
  end
137
136
 
138
137
  end
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.13.3
4
+ version: 2.13.4
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-06-01 00:00:00.000000000 Z
13
+ date: 2015-07-30 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: excon
@@ -279,7 +279,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
279
279
  version: '0'
280
280
  requirements: []
281
281
  rubyforge_project:
282
- rubygems_version: 2.2.2
282
+ rubygems_version: 2.4.4
283
283
  signing_key:
284
284
  specification_version: 4
285
285
  summary: Deploy utility for docker containers