dockly 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/dockly/build_cache/docker.rb +1 -5
- data/lib/dockly/version.rb +1 -1
- metadata +2 -2
@@ -1,10 +1,6 @@
|
|
1
1
|
class Dockly::BuildCache::Docker < Dockly::BuildCache::Base
|
2
2
|
attr_accessor :image
|
3
3
|
|
4
|
-
def wait_time
|
5
|
-
300 # max 5 minutes
|
6
|
-
end
|
7
|
-
|
8
4
|
def execute!
|
9
5
|
ensure_present! :image
|
10
6
|
super
|
@@ -92,7 +88,7 @@ class Dockly::BuildCache::Docker < Dockly::BuildCache::Base
|
|
92
88
|
debug "running command `#{command}` on image #{image.id}"
|
93
89
|
container = image.run(["/bin/bash", "-c", "cd #{command_directory} && #{command}"])
|
94
90
|
debug "command running in container #{container.id}"
|
95
|
-
status = container.wait(
|
91
|
+
status = container.wait(docker.timeout)['StatusCode']
|
96
92
|
resp = container.streaming_logs(stdout: true, stderr: true)
|
97
93
|
debug "`#{command}` returned the following output:"
|
98
94
|
debug resp.strip
|
data/lib/dockly/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dockly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-03-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: clamp
|