docker-armada 2.13.1 → 2.13.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 578e451ca7c8470b10c91273893ea362864cf094
4
- data.tar.gz: dc0ab44c60cdf7cf625b0e0b4b1fd3eec88e5712
3
+ metadata.gz: c1f8444036ef96fc52278b48f467f603848028e4
4
+ data.tar.gz: d23a2aaae82d89e40ecad6b6ae6a5631dad9b5b6
5
5
  SHA512:
6
- metadata.gz: c7f1f861911477540602823b87fa78339327c3d87b9d6907a5ce8c4e020a22b7aeea5231fa594e5873c44d35c75326b796e89a75e555c7e208325f260604c4a1
7
- data.tar.gz: 6b1d2293cef350201b6484fdad5cdd68bf764ce6af031da303fb6a277895dc4b5dbe182628b71df00a9dba62536b52f2cd67d0b00f0dc54353fcc3582659066d
6
+ metadata.gz: 3dfec474d392c9860caa6d7a44fcff179e8e8b6c67ddff1f3261c3972fd73a94d5410f6928f4fb0ed3a9db061827141e0a53ffce97c040d0d8f26203b8d54edf
7
+ data.tar.gz: 5e0856a5600d585bfaaad5348862cc48ebfcdbc47fa5a08513c8fa175409d45db7651e18d9882f7bdf2dde3af6d7d50787a0d70b680f92b53d3fb0bb927991b7
@@ -40,16 +40,22 @@ module Armada
40
40
  if @options[:health_check] && @options[:health_check_port]
41
41
  ports = container.ports
42
42
 
43
- if ports.empty?
44
- raise "No ports exposed for this container. Please expose a port for the health check or use the --no-health-check option!"
45
- end
43
+ # if --net=host, then there will be no ports hash. The container has direct access to the host network
44
+ if ports
45
+ if ports.empty?
46
+ raise "No ports exposed for this container. Please expose a port for the health check or use the --no-health-check option!"
47
+ end
46
48
 
47
- begin
48
- health_check_port = ports["#{@options[:health_check_port]}/tcp"][0]["HostPort"]
49
- rescue Exception => e
50
- raise "Could not find the host port for [#{health_check_port}]. Make sure you put the container port as the :health_check_port."
49
+ begin
50
+ health_check_port = ports["#{@options[:health_check_port]}/tcp"][0]["HostPort"]
51
+ rescue Exception => e
52
+ raise "Could not find the host port for [#{health_check_port}]. Make sure you put the container port as the :health_check_port."
53
+ end
54
+ else
55
+ health_check_port = @options[:health_check_port]
51
56
  end
52
57
 
58
+
53
59
  health_check = Armada::Connection::HealthCheck.new(
54
60
  health_check_host,
55
61
  health_check_port,
@@ -45,14 +45,19 @@ module Armada
45
45
  if @options[:health_check] && @options[:health_check_port]
46
46
  ports = container.ports
47
47
 
48
- if ports.empty?
49
- raise "No ports exposed for this container. Please expose a port for the health check or use the --no-health-check option!"
50
- end
48
+ # if --net=host, then there will be no ports hash. The container has direct access to the host network
49
+ if ports
50
+ if ports.empty?
51
+ raise "No ports exposed for this container. Please expose a port for the health check or use the --no-health-check option!"
52
+ end
51
53
 
52
- begin
53
- health_check_port = ports["#{@options[:health_check_port]}/tcp"][0]["HostPort"]
54
- rescue Exception => e
55
- raise "Could not find the host port for [#{health_check_port}]. Make sure you put the container port as the :health_check_port."
54
+ begin
55
+ health_check_port = ports["#{@options[:health_check_port]}/tcp"][0]["HostPort"]
56
+ rescue Exception => e
57
+ raise "Could not find the host port for [#{health_check_port}]. Make sure you put the container port as the :health_check_port."
58
+ end
59
+ else
60
+ health_check_port = @options[:health_check_port]
56
61
  end
57
62
 
58
63
  health_check = Armada::Connection::HealthCheck.new(
@@ -35,7 +35,7 @@ describe Armada::Connection::Docker do
35
35
  subject { connection.options }
36
36
 
37
37
  it { should include(:client_cert, :client_key, :ssl_ca_file, :ssl_verify_peer) }
38
- its([:ssl_verify_peer]) { should be_true }
38
+ its([:ssl_verify_peer]) { should be_false }
39
39
  end
40
40
 
41
41
  context 'disable TLS verify' do
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.1
4
+ version: 2.13.2
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-04-28 00:00:00.000000000 Z
13
+ date: 2015-05-28 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: excon