kitchen-dokken 0.0.13 → 0.0.14

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: d6db975f50f90cf847c61c52623517c7d596efb0
4
- data.tar.gz: 5ff09558f9547141d31782b9538b242583518170
3
+ metadata.gz: 281a9d81aca687090ac3b3a3f3751eb2ecbe954a
4
+ data.tar.gz: 852aa96acd876d19e13e8d820f5f0a937ad24b85
5
5
  SHA512:
6
- metadata.gz: 5898ca693aab9b8122668458580032751148cf404f718d8c03d3a8941a6ab4f4f519037c34022719d89f35f5c85858034eab55ad0e6e4f4a09fa04b49116c357
7
- data.tar.gz: 5867030831ed974e2ee63d69925c92f8da0bb27092bd5af747293b4d90aa80e390a7bab53f183e9efae8027b687657837f0140063e99b959d0d86e87fc5af825
6
+ metadata.gz: 2b07def8cc14a9ce8e23eb9abaccc0551b2ae82af4a65df82e58adce84cf23ce90ae53b51576036f19963642e4b61fedaf2c6d93dc9a3d1d3507023a33d6cce7
7
+ data.tar.gz: c18f97870cd8f9d02eb5c81f6c72f4b64865c9683a8794cb7ef6ee98174b0fbc6bf0dd4d6d1d9087be3217db5958857b87514dc4f396f30c60d8568a08cc2746
@@ -97,13 +97,13 @@ module Kitchen
97
97
 
98
98
  with_retries do
99
99
  begin
100
- @work_image = Docker::Image.build_from_dir(
101
- context_root,
102
- { 'nocache' => true, 'rm' => true },
103
- docker_connection
104
- )
100
+ @work_image = Docker::Image.build_from_dir(
101
+ context_root,
102
+ { 'nocache' => true, 'rm' => true },
103
+ docker_connection
104
+ )
105
105
  rescue
106
- puts "SEANDEBUG: EXPLOSIONS"
106
+ debug "work_image build failed. retrying."
107
107
  end
108
108
  end
109
109
 
@@ -19,6 +19,6 @@
19
19
  module Kitchen
20
20
  module Driver
21
21
  # Version string for Dokken Kitchen driver
22
- DOKKEN_VERSION = '0.0.13'
22
+ DOKKEN_VERSION = '0.0.14'
23
23
  end
24
24
  end
@@ -74,14 +74,14 @@ module Kitchen
74
74
  end
75
75
 
76
76
  begin
77
- old_image = Docker::Image.get(work_image, {}, docker_connection)
78
- with_retries { old_image.remove }
77
+ @old_image = Docker::Image.get(work_image, {}, docker_connection)
78
+ with_retries { @old_image.remove }
79
79
  rescue
80
80
  debug "#{work_image} not present. nothing to remove."
81
81
  end
82
82
 
83
- new_image = @runner.commit
84
- new_image.tag('repo' => work_image, 'tag' => 'latest', 'force' => 'true')
83
+ @new_image = @runner.commit
84
+ with_retries { @new_image.tag('repo' => work_image, 'tag' => 'latest', 'force' => 'true') }
85
85
  end
86
86
 
87
87
  def upload(locals, remote)
@@ -143,14 +143,14 @@ module Kitchen
143
143
  block.call
144
144
  # Only catch errors that can be fixed with retries.
145
145
  rescue Docker::Error::ServerError, # 404
146
- Docker::Error::UnexpectedResponseError, # 400
147
- Docker::Error::TimeoutError,
148
- Docker::Error::IOError => e
146
+ Docker::Error::UnexpectedResponseError, # 400
147
+ Docker::Error::TimeoutError,
148
+ Docker::Error::IOError => e
149
149
  tries -= 1
150
150
  retry if tries > 0
151
151
  raise e
152
152
  end
153
- end
153
+ end
154
154
  end
155
155
 
156
156
  private
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kitchen-dokken
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13
4
+ version: 0.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean OMeara