kitchen-dokken 2.12.1 → 2.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/kitchen/driver/dokken.rb +3 -2
- data/lib/kitchen/driver/dokken_version.rb +1 -1
- data/lib/kitchen/helpers.rb +2 -0
- data/lib/kitchen/provisioner/dokken.rb +2 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7eea74ed725f969f5c886cfa3779e4b3a9094709f70e18bfe6793b913ce56c23
|
4
|
+
data.tar.gz: dc4492c20b777baa7d2063156bd37c31db378545af392f49895878e9e1523b91
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d3020a6b005734959245fcc28401fed70d80755d05f807f22933478a6f58bf481333284959cdb2a5b533e5f56db98174a0aaca2a0d5d015767062ac081e2e2e3
|
7
|
+
data.tar.gz: e62c1cb7e25243ede096137079403302162d550aa7fc076ad8dcfaefda26b230a12baac451b3bd788754099c0fb55bc4b4d033acd719b4049d18652214514434
|
@@ -48,6 +48,7 @@ module Kitchen
|
|
48
48
|
default_config :entrypoint, nil
|
49
49
|
default_config :env, nil
|
50
50
|
default_config :hostname, "dokken"
|
51
|
+
default_config :hostname_aliases, nil
|
51
52
|
default_config :image_prefix, nil
|
52
53
|
default_config :links, nil
|
53
54
|
default_config :memory_limit, 0
|
@@ -313,7 +314,7 @@ module Kitchen
|
|
313
314
|
"NetworkingConfig" => {
|
314
315
|
"EndpointsConfig" => {
|
315
316
|
self[:network_mode] => {
|
316
|
-
"Aliases" => Array(self[:hostname]),
|
317
|
+
"Aliases" => Array(self[:hostname]).concat(Array(self[:hostname_aliases])),
|
317
318
|
},
|
318
319
|
},
|
319
320
|
},
|
@@ -599,7 +600,7 @@ module Kitchen
|
|
599
600
|
original_image = Docker::Image.get(path, {}, docker_connection)
|
600
601
|
end
|
601
602
|
|
602
|
-
new_image = Docker::Image.create({ "fromImage" => path }, docker_connection)
|
603
|
+
new_image = Docker::Image.create({ "fromImage" => path }, {}, docker_connection)
|
603
604
|
|
604
605
|
!(original_image && original_image.id.start_with?(new_image.id))
|
605
606
|
end
|
data/lib/kitchen/helpers.rb
CHANGED
@@ -117,6 +117,8 @@ VOLUME /opt/verifier
|
|
117
117
|
end
|
118
118
|
|
119
119
|
def docker_info
|
120
|
+
::Docker.url = default_docker_host
|
121
|
+
|
120
122
|
@docker_info ||= ::Docker.info
|
121
123
|
rescue Excon::Error::Socket
|
122
124
|
puts "kitchen-dokken could not connect to the docker host at #{default_docker_host}. Is docker running?"
|
@@ -109,12 +109,13 @@ module Kitchen
|
|
109
109
|
cmd << " -c /opt/kitchen/client.rb"
|
110
110
|
cmd << " -j /opt/kitchen/dna.json"
|
111
111
|
cmd << "--profile-ruby" if config[:profile_ruby]
|
112
|
+
cmd << "--slow-report" if config[:slow_resource_report]
|
112
113
|
|
113
114
|
chef_cmd(cmd)
|
114
115
|
end
|
115
116
|
|
116
117
|
def write_run_command(command)
|
117
|
-
File.write("#{dokken_kitchen_sandbox}/run_command", command)
|
118
|
+
File.write("#{dokken_kitchen_sandbox}/run_command", command, mode: "wb")
|
118
119
|
end
|
119
120
|
|
120
121
|
def runner_container_name
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kitchen-dokken
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.13.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sean OMeara
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-06-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: docker-api
|
@@ -97,7 +97,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
97
97
|
- !ruby/object:Gem::Version
|
98
98
|
version: '0'
|
99
99
|
requirements: []
|
100
|
-
rubygems_version: 3.
|
100
|
+
rubygems_version: 3.2.15
|
101
101
|
signing_key:
|
102
102
|
specification_version: 4
|
103
103
|
summary: A Test Kitchen Driver for Docker & Chef Infra optimized for rapid testing
|