dockly 1.5.6 → 1.5.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -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.copy(output_directory) { |chunk| file.write(chunk) }
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
 
@@ -1,3 +1,3 @@
1
1
  module Dockly
2
- VERSION = '1.5.6'
2
+ VERSION = '1.5.7'
3
3
  end
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.6
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-05 00:00:00.000000000 Z
12
+ date: 2014-06-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: clamp