athlete 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +13 -0
- data/lib/athlete/deployment.rb +6 -0
- data/lib/athlete/version.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: f74d55a4478923c3c07d5e61b9ef1358db35eaa9
|
4
|
+
data.tar.gz: 905ece2227a28b8ad82f060b6bd82d7a80cb5f60
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b0a784d3061bb66b7581e025310de7772a65d72ca4a543886355a2ab3a367c76d3aab615d45fa36bb88143dece13140e3d55fcd94c34935db0f6ab34a643dbb6
|
7
|
+
data.tar.gz: 628cd7c905077d07b04c3d5fd802ba9d484dcde5ba1d3d3a9d4becdc3cb2733f61326eb631cc586efd3d6b4632f3d2a11bb978722dca6b35a2c0f78784e7fe24
|
data/README.md
CHANGED
@@ -256,6 +256,19 @@ This description is taken from the
|
|
256
256
|
> then take the other half down and deploy the rest. A value of 0 means take all instances down
|
257
257
|
> immediately and replace with the new application.
|
258
258
|
|
259
|
+
##### `volumes`
|
260
|
+
|
261
|
+
An array of hashes, indicating how to mount volumes inside the container, specified
|
262
|
+
like this:
|
263
|
+
|
264
|
+
[
|
265
|
+
{
|
266
|
+
"containerPath" => "/somepath",
|
267
|
+
"hostPath" => "/some/other/path",
|
268
|
+
"mode" => "RW"
|
269
|
+
}
|
270
|
+
]
|
271
|
+
|
259
272
|
## Contributing
|
260
273
|
|
261
274
|
1. Fork it ( https://github.com/forward3d/athlete/fork )
|
data/lib/athlete/deployment.rb
CHANGED
@@ -22,6 +22,7 @@ module Athlete
|
|
22
22
|
instances
|
23
23
|
minimum_health_capacity
|
24
24
|
port_mappings
|
25
|
+
volumes
|
25
26
|
}
|
26
27
|
|
27
28
|
# Define properties that cannot be overridden or inherited
|
@@ -34,6 +35,7 @@ module Athlete
|
|
34
35
|
arguments
|
35
36
|
environment_variables
|
36
37
|
port_mappings
|
38
|
+
volumes
|
37
39
|
}
|
38
40
|
|
39
41
|
def initialize
|
@@ -276,6 +278,10 @@ module Athlete
|
|
276
278
|
json['container']['docker']['portMappings'] = @port_mappings
|
277
279
|
end
|
278
280
|
|
281
|
+
if @volumes
|
282
|
+
json['container']['volumes'] = @volumes
|
283
|
+
end
|
284
|
+
|
279
285
|
end
|
280
286
|
|
281
287
|
debug("Generated Marathon JSON: #{json.to_json}")
|
data/lib/athlete/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: athlete
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andy Sykes
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-02-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|