dockly 1.5.1 → 1.5.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -27,12 +27,13 @@ class Dockly::BuildCache::Docker < Dockly::BuildCache::Base
|
|
27
27
|
debug "inserting to #{output_directory}"
|
28
28
|
path = File.expand_path(cache.path)
|
29
29
|
path_parent = File.dirname(path)
|
30
|
+
tar_flags = keep_old_files ? '-xfk' : 'xf'
|
30
31
|
container = ::Docker::Container.create(
|
31
32
|
'Image' => image.id,
|
32
33
|
'Cmd' => ['/bin/bash', '-lc', [
|
33
34
|
"mkdir -p #{File.dirname(output_directory)}",
|
34
35
|
'&&',
|
35
|
-
"tar
|
36
|
+
"tar #{tar_flags} #{File.join('/', 'host', path)} -C #{File.dirname(output_directory)}"
|
36
37
|
].join(' ')
|
37
38
|
],
|
38
39
|
'Volumes' => {
|
data/lib/dockly/version.rb
CHANGED