dockly 1.5.6 → 1.5.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/dockly/build_cache/docker.rb +5 -1
- data/lib/dockly/version.rb +1 -1
- metadata +2 -2
@@ -57,7 +57,11 @@ class Dockly::BuildCache::Docker < Dockly::BuildCache::Base
|
|
57
57
|
FileUtils.mkdir_p(File.dirname(file_path))
|
58
58
|
file = File.open(file_path, 'w+b')
|
59
59
|
container.wait(3600) # 1 hour max timeout
|
60
|
-
container
|
60
|
+
debug 'Restarting the container to copy the cache\'s output'
|
61
|
+
# Restart the container so we can copy its output
|
62
|
+
container = container.commit.run('sleep 3600').tap(&:start)
|
63
|
+
container.copy(output_directory) { |chunk| file.write(chunk.to_s) }
|
64
|
+
container.kill
|
61
65
|
file.tap(&:rewind)
|
62
66
|
end
|
63
67
|
|
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: 1.5.
|
4
|
+
version: 1.5.7
|
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: 2014-06-
|
12
|
+
date: 2014-06-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: clamp
|