dockly 1.5.7 → 1.5.8
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/local.rb +1 -1
- data/lib/dockly/docker.rb +8 -5
- data/lib/dockly/version.rb +1 -1
- metadata +2 -2
@@ -2,7 +2,7 @@ class Dockly::BuildCache::Local < Dockly::BuildCache::Base
|
|
2
2
|
def run_build
|
3
3
|
puts "Build command: #{build_command}"
|
4
4
|
status, body = run_command(build_command)
|
5
|
-
raise "Build Cache `#{build_command}` failed to run
|
5
|
+
raise "Build Cache `#{build_command}` failed to run.\nError: #{body}" unless status.success?
|
6
6
|
FileUtils.mkdir_p(File.dirname(save_file))
|
7
7
|
tar_file = Dockly::Util::Tar.tar(output_directory, save_file)
|
8
8
|
push_to_s3(tar_file)
|
data/lib/dockly/docker.rb
CHANGED
@@ -26,6 +26,13 @@ class Dockly::Docker
|
|
26
26
|
default_value :timeout, 60
|
27
27
|
|
28
28
|
def generate!
|
29
|
+
image = generate_build
|
30
|
+
export_image(image)
|
31
|
+
ensure
|
32
|
+
cleanup([image]) if cleanup_images
|
33
|
+
end
|
34
|
+
|
35
|
+
def generate_build
|
29
36
|
Docker.options = { :read_timeout => timeout, :write_timeout => timeout }
|
30
37
|
images = {}
|
31
38
|
|
@@ -42,11 +49,7 @@ class Dockly::Docker
|
|
42
49
|
|
43
50
|
images[:two] = add_git_archive(images[:one])
|
44
51
|
images[:three] = run_build_caches(images[:two])
|
45
|
-
|
46
|
-
|
47
|
-
export_image(images[:four])
|
48
|
-
|
49
|
-
true
|
52
|
+
build_image(images[:three])
|
50
53
|
ensure
|
51
54
|
cleanup(images.values.compact) if cleanup_images
|
52
55
|
end
|
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.8
|
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-
|
12
|
+
date: 2014-07-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: clamp
|