kitchen-dokken 2.5.1 → 2.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 007cf9c4b9301c8ea7d351ef74c72eaa3410adfc
4
- data.tar.gz: 3b5948b479f7e56cf32175d65dca46b03c2456f4
3
+ metadata.gz: a9bab02abb12ef02b92221d1ec0904c62a44d7f3
4
+ data.tar.gz: 503fb7e3f4d7747537d7b60904eff477d684e14b
5
5
  SHA512:
6
- metadata.gz: a9490504b7c0b0d9df60ea45e949437143ae3917f6e29b016b98794dfdbe4f1cefaf081e2b074f992b778b8d28981d7a5e6a6d00a7c73d736352db45b3703475
7
- data.tar.gz: 796e7023b5fe41aaf1916891b910efae60e505fe41d563b78bb1499231ebf3720b48f0bea2450be98e067660ba2ad2aa3247ca5605131e4010a1b89fb1b9ef75
6
+ metadata.gz: 23576544a00c14affc5b9fecac94852c6181d9fdec7fcbb482e70ba99116d10e1629a075a5296ae3bac304447d4a7595fb5909202c022e2f44b020882c80f4a1
7
+ data.tar.gz: aeb0cc865e948767ea6e5e9c9246069b7dc79ff1220100de736f56176efeacb31305562ab1439b7b9c35177f37f550872bc1747e931771af40b3b1dc8024ab56
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Dokken Changelog
2
2
 
3
+ # 2.6.0
4
+ - Support for testing without provisioner converging
5
+ - entrypoint config
6
+
3
7
  # 2.5.1
4
8
  - re-adding boot2docker detection
5
9
 
@@ -43,6 +43,8 @@ module Kitchen
43
43
  default_config :dns, nil
44
44
  default_config :dns_search, nil
45
45
  default_config :docker_info, docker_info
46
+ default_config :entrypoint, nil
47
+ default_config :env, nil
46
48
  default_config :ports, nil
47
49
  default_config :docker_host_url, default_docker_host
48
50
  default_config :hostname, 'dokken'
@@ -150,10 +152,14 @@ module Kitchen
150
152
  end
151
153
 
152
154
  def work_image_dockerfile
153
- from = "FROM #{platform_image}"
154
- custom = ['RUN /bin/sh -c "echo Built with Test Kitchen"']
155
- Array(config[:intermediate_instructions]).each { |c| custom << c }
156
- [from, custom].join("\n")
155
+ dockerfile_contents = [
156
+ "FROM #{platform_image}",
157
+ "LABEL X-Built-By=kitchen-dokken X-Built-From=#{platform_image}"
158
+ ]
159
+ Array(config[:intermediate_instructions]).each { |c|
160
+ dockerfile_contents << c
161
+ }
162
+ dockerfile_contents.join("\n")
157
163
  end
158
164
 
159
165
  def save_misc_state(state)
@@ -248,6 +254,7 @@ module Kitchen
248
254
  'Cmd' => Shellwords.shellwords(self[:pid_one_command]),
249
255
  'Image' => "#{repo(work_image)}:#{tag(work_image)}",
250
256
  'Hostname' => self[:hostname],
257
+ 'Env' => self[:env],
251
258
  'ExposedPorts' => exposed_ports,
252
259
  'Volumes' => dokken_volumes,
253
260
  'HostConfig' => {
@@ -271,6 +278,9 @@ module Kitchen
271
278
  },
272
279
  },
273
280
  }
281
+ unless self[:entrypoint].to_s.length == 0
282
+ config.merge!('Entrypoint' => self[:entrypoint])
283
+ end
274
284
  runner_container = run_container(config)
275
285
  state[:runner_container] = runner_container.json
276
286
  end
@@ -19,6 +19,6 @@
19
19
  module Kitchen
20
20
  module Driver
21
21
  # Version string for Dokken Kitchen driver
22
- DOKKEN_VERSION = '2.5.1'.freeze
22
+ DOKKEN_VERSION = '2.6.0'.freeze
23
23
  end
24
24
  end
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.5.1
4
+ version: 2.6.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: 2017-07-02 00:00:00.000000000 Z
11
+ date: 2017-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test-kitchen