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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2474878701e17353f2f12eb992021f12a7145b5a
4
- data.tar.gz: 4e1c436a72a33f51bbcb6e4158c210ebac143282
3
+ metadata.gz: a1d1e5b7a3a6ee13ecec225ff2dd15e8b04efe70
4
+ data.tar.gz: a3370db7570071ba53d0d9b15a624771802fb7f0
5
5
  SHA512:
6
- metadata.gz: 15d37c4b11b5015d9225abcfb14cb52f2ecc52475ecda037607ef5b1d2818ae84fc28d9062ac404eb82406819dd6040e9549241300b9bc7310b3d1b068ec46f2
7
- data.tar.gz: 4a06685256f21735b045a8cbe7d2a084e6b35ad7e01ab99db47c7c8f68f4dc32b4951afc6b7f89697203ffb8a4b27f95cd9a7630654412fac73b4451c3b5f8ab
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.21.0"
23
+ spec.add_dependency "docker-api", "= 1.32.1"
24
24
  spec.add_dependency "erubis"
25
25
  spec.add_dependency "json"
26
26
  end
@@ -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 image.info.has_key?('RepoTags') && !image.info['RepoTags'].nil? && image.info['RepoTags'].include?(@full_name)
112
+ if (image.info['RepoTags'] || []).include?(@full_name)
113
113
  return image
114
114
  end
115
115
  end
@@ -1,3 +1,3 @@
1
1
  module DockerTools
2
- VERSION = "0.0.23"
2
+ VERSION = "0.0.24"
3
3
  end
data/lib/docker_tools.rb CHANGED
@@ -7,9 +7,6 @@ require "docker_tools/util"
7
7
  require "docker"
8
8
 
9
9
  module DockerTools
10
- #Default the docker url to docker http service
11
- Docker.url = 'http://localhost:4243'
12
-
13
10
  def default_dependency_fallback_tag
14
11
  'latest'
15
12
  end
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.23
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-24 00:00:00.000000000 Z
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.21.0
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.21.0
54
+ version: 1.32.1
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: erubis
57
57
  requirement: !ruby/object:Gem::Requirement