kitchen-dokken 2.2.1 → 2.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/kitchen/driver/dokken.rb +13 -12
- data/lib/kitchen/driver/dokken_version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5758ff1410fbf25008ce323eab6d27340835c482
|
4
|
+
data.tar.gz: 3efaa5e7c5ef7cbe4ddd452b16d53a78beb9bba7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aedf4dd36c3e2fdc23afdc970b4f1f55829dc3cd1133327e033871dd43bc0a1e24b61c3b795e1c0d9d20642cf29dab834f2b5791efbdc40d9d4389d0c462bf5f
|
7
|
+
data.tar.gz: e412ab58916d486eaa0c4e0d31532a3e28e4888e5ebc054152af1051f83b68b1332010daa06a0af91b243a296b93a4597a444b73a095cd444728e20390279939
|
data/CHANGELOG.md
CHANGED
@@ -60,13 +60,13 @@ module Kitchen
|
|
60
60
|
# image to config
|
61
61
|
pull_platform_image
|
62
62
|
|
63
|
+
# network
|
64
|
+
make_dokken_network
|
65
|
+
|
63
66
|
# chef
|
64
67
|
pull_chef_image
|
65
68
|
create_chef_container state
|
66
69
|
|
67
|
-
# network
|
68
|
-
make_dokken_network
|
69
|
-
|
70
70
|
# data
|
71
71
|
dokken_create_sandbox
|
72
72
|
|
@@ -297,8 +297,8 @@ module Kitchen
|
|
297
297
|
def make_dokken_network
|
298
298
|
debug 'driver - creating dokken network'
|
299
299
|
Docker::Network.create('dokken', {})
|
300
|
-
rescue
|
301
|
-
debug
|
300
|
+
rescue ::Docker::Error => e
|
301
|
+
debug "driver - :#{e}:"
|
302
302
|
end
|
303
303
|
|
304
304
|
def make_data_image
|
@@ -311,24 +311,25 @@ module Kitchen
|
|
311
311
|
rescue ::Docker::Error::NotFoundError
|
312
312
|
begin
|
313
313
|
debug "driver - creating volume container #{chef_container_name} from #{chef_image}"
|
314
|
-
|
314
|
+
config = {
|
315
315
|
'name' => chef_container_name,
|
316
316
|
'Cmd' => 'true',
|
317
317
|
'Image' => "#{repo(chef_image)}:#{tag(chef_image)}",
|
318
318
|
'HostConfig' => {
|
319
|
-
'NetworkMode' =>
|
319
|
+
'NetworkMode' => self[:network_mode],
|
320
320
|
},
|
321
321
|
'NetworkingConfig' => {
|
322
322
|
'EndpointsConfig' => {
|
323
323
|
self[:network_mode] => {
|
324
|
-
'Aliases' => Array(
|
324
|
+
'Aliases' => Array(self[:hostname]),
|
325
325
|
},
|
326
326
|
},
|
327
|
-
}
|
328
|
-
|
327
|
+
},
|
328
|
+
}
|
329
|
+
chef_container = create_container(config)
|
329
330
|
state[:chef_container] = chef_container.json
|
330
|
-
rescue
|
331
|
-
|
331
|
+
rescue ::Docker::Error => e
|
332
|
+
raise "driver - #{chef_container_name} failed to create #{e}"
|
332
333
|
end
|
333
334
|
end
|
334
335
|
|