docker-armada 2.14.0 → 2.14.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/armada/deploy/rolling.rb +2 -2
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 36ef91d0b2848d24235fccfca7977f6a62dfd106
4
- data.tar.gz: 39e2b928b23892a1d8b4020a986ea055da75791c
3
+ metadata.gz: 2a7218b6246ca0315a105aca2f84ae7988fe8483
4
+ data.tar.gz: 00fac5b1cd9622ee3ad94e4244309d69b3848af1
5
5
  SHA512:
6
- metadata.gz: 95a43e4cfa47228596d17e03a7f3ffe0c2342de1b09bff45f966bcc31b78f16ca53794989606e6f53941e903d55bbaaceb3beed9f457e0be417bd9ab1108fff6
7
- data.tar.gz: fe5787f76ab9422047877aef75946f55a92865a51ddfaabc52bda00a3e1119e76e1046fafdacab261058fe83ace6b7c67fb8c9d2fba386864e6b04ca4630fa7d
6
+ metadata.gz: a271a27317af4aad85384548ba4c96c1a65ebe9748593c4305894d7dc6fb1961c9f2f2510ad76ade48d685f0d152838049ef26fa3b16c0363b97e4dbf2e45113
7
+ data.tar.gz: d54d6c11179f8fa16c91de99df7f09743bff55596abefabdbe60d590305ce20805c45d2229ecb6e81a707bc43ba803fe03ebb629a4165c37558279d000209aa9
@@ -45,8 +45,8 @@ module Armada
45
45
  if @options[:health_check] && @options[:health_check_port]
46
46
  ports = container.ports
47
47
 
48
- # if --net=host, then there will be no ports hash. The container has direct access to the host network
49
- if ports
48
+ # if --net=host, then there's no port mapping to be done.
49
+ if container.container.json["HostConfig"]["NetworkMode"] != "host"
50
50
  if ports.empty?
51
51
  raise "No ports exposed for this container. Please expose a port for the health check or use the --no-health-check option!"
52
52
  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.14.0
4
+ version: 2.14.1
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-08-05 00:00:00.000000000 Z
13
+ date: 2015-09-09 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