docker-armada 2.13.2 → 2.13.3

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: c1f8444036ef96fc52278b48f467f603848028e4
4
- data.tar.gz: d23a2aaae82d89e40ecad6b6ae6a5631dad9b5b6
3
+ metadata.gz: 177be0099cf668e4aa44eebc565c62dc518ed316
4
+ data.tar.gz: f82b8307023639e8066500c7a62357cc9af2e75e
5
5
  SHA512:
6
- metadata.gz: 3dfec474d392c9860caa6d7a44fcff179e8e8b6c67ddff1f3261c3972fd73a94d5410f6928f4fb0ed3a9db061827141e0a53ffce97c040d0d8f26203b8d54edf
7
- data.tar.gz: 5e0856a5600d585bfaaad5348862cc48ebfcdbc47fa5a08513c8fa175409d45db7651e18d9882f7bdf2dde3af6d7d50787a0d70b680f92b53d3fb0bb927991b7
6
+ metadata.gz: 2230f3021521bbe770ad002069a84a5cc4a4829338badc4a7473e4e88a34ce5b49ae9a54183b411500d87d824003dc3a1d98afabb86665949c99ef8e7677455f
7
+ data.tar.gz: 019988986902393988155ee54c1c01202383034856e1abc99809308f7d31021c8d72effe17657b8e741749a93a5cd661f6f09ae7154d0cf7520817463b3b98c5
@@ -81,6 +81,12 @@ module Armada
81
81
  end
82
82
  end
83
83
 
84
+ if container_name
85
+ container_config['name'] = container_name
86
+ options[:env_vars][:SERVICE_NAME] = container_name
87
+ #should we do soemthing if container name isnt set?
88
+ end
89
+
84
90
  if options[:env_vars]
85
91
  container_config['Env'] = options[:env_vars].map { |k,v| "#{k}=#{v}" }
86
92
  end
@@ -93,11 +99,6 @@ module Armada
93
99
  container_config['VolumesFrom'] = 'parent'
94
100
  end
95
101
 
96
- if container_name
97
- container_config['name'] = container_name
98
- #should we do soemthing if container name isnt set?
99
- end
100
-
101
102
  if options[:restart_policy]
102
103
  container_config["RestartPolicy"] = options[:restart_policy]
103
104
  end
@@ -119,7 +119,7 @@ describe Armada::Container do
119
119
  it { should include("Hostname" => "hostname") }
120
120
  it { should include("name" => "some_container") }
121
121
  it { should include("ExposedPorts" => { "1111/tcp" => {}, "2222/udp" => {}}) }
122
- it { should include("Env" => ["KEY=VALUE", "HOST=hostname"]) }
122
+ it { should include("Env" => ["KEY=VALUE", "HOST=hostname", "SERVICE_NAME=some_container"]) }
123
123
  it { should include("Volumes" => { "/container/log" => {} }) }
124
124
  it { should include("VolumesFrom" => "parent") }
125
125
  it { should include("RestartPolicy" => { "MaximumRetryCount" => 5, "Name" => "always" }) }
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.2
4
+ version: 2.13.3
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-05-28 00:00:00.000000000 Z
13
+ date: 2015-06-01 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: excon