docker_tools 0.0.23 → 0.0.24
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/docker_tools.gemspec +1 -1
- data/lib/docker_tools/image.rb +2 -2
- data/lib/docker_tools/version.rb +1 -1
- data/lib/docker_tools.rb +0 -3
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a1d1e5b7a3a6ee13ecec225ff2dd15e8b04efe70
|
4
|
+
data.tar.gz: a3370db7570071ba53d0d9b15a624771802fb7f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1dfda940edc18315860e4f667f8eca7dcbeeff8a24c9a80d34cf6c5df5a3575f67b0e042e5c0681052073cfdea41a2ccba63da89f21f7482e92ce0e04448bfeb
|
7
|
+
data.tar.gz: 478d896b6aa6f8d4cee2cc2d77b7ab5a9aa770376c7b2c366a496f17394602f5b4c020f77571e34de943fe1f4f44c5cbbeab2b39cc25db9e991f6973e47581ac
|
data/docker_tools.gemspec
CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
|
|
20
20
|
|
21
21
|
spec.add_dependency "bundler", "~> 1.3"
|
22
22
|
spec.add_dependency "rake"
|
23
|
-
spec.add_dependency "docker-api", "= 1.
|
23
|
+
spec.add_dependency "docker-api", "= 1.32.1"
|
24
24
|
spec.add_dependency "erubis"
|
25
25
|
spec.add_dependency "json"
|
26
26
|
end
|
data/lib/docker_tools/image.rb
CHANGED
@@ -38,7 +38,7 @@ module DockerTools
|
|
38
38
|
dockerfile_path = "#{@dir}/Dockerfile"
|
39
39
|
dockerfile_contents = dockerfile(@name, registry, dependency_tag, template_vars)
|
40
40
|
File.open(dockerfile_path, 'w') { | file | file.write(dockerfile_contents) }
|
41
|
-
@image = Docker::Image.build_from_dir(@dir, { 'rm' => rm, 'nocache' => no_cache }) do | chunk |
|
41
|
+
@image = Docker::Image.build_from_dir(@dir, { 'rm' => rm, 'nocache' => no_cache }) do | chunk |
|
42
42
|
DockerTools::Util.parse_output(chunk) do | output |
|
43
43
|
if output.kind_of?(Hash)
|
44
44
|
if output.has_key?('error')
|
@@ -109,7 +109,7 @@ module DockerTools
|
|
109
109
|
def lookup_image
|
110
110
|
images = Docker::Image.all
|
111
111
|
images.each do | image |
|
112
|
-
if
|
112
|
+
if (image.info['RepoTags'] || []).include?(@full_name)
|
113
113
|
return image
|
114
114
|
end
|
115
115
|
end
|
data/lib/docker_tools/version.rb
CHANGED
data/lib/docker_tools.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: docker_tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.24
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Jansen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-08
|
11
|
+
date: 2016-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - '='
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 1.
|
47
|
+
version: 1.32.1
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - '='
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 1.
|
54
|
+
version: 1.32.1
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: erubis
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|