kitchen-docker_cli 0.11.2 → 0.12.0

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: 66fe10a065fda5ba1aa5aba1c625d3eb18c2c059
4
- data.tar.gz: f5f41b5f4d65e2eaf30aa852393e57c8dabc5dc9
3
+ metadata.gz: 59f4ff9d93ea123fbe449de146d4204624188a7f
4
+ data.tar.gz: 80110e3e1f6d1e62f70cec1c5636810ac1f2b2af
5
5
  SHA512:
6
- metadata.gz: 2264085fe335a0fe2c448d5445b172e11c0256fadf970c38e316c1826dbef18c4860004dfefcb7c45cfec7debe78f5dd3134c545e2af69abc0604206f7d74df7
7
- data.tar.gz: 6e65cb6fbdf7172524593bcb27f85ed87eab2f2d86e0043863278480da537b4cf3194bf292010c2309b131542e90aaabc2d59d8c794067340f51edd870b98ac9
6
+ metadata.gz: 8814b04067321e872576e35844a25c6f6bf0e1f86ba84e7f01e129e8a76da22f4953559925179a56facf0bbd960296b61b2fc8acc8bd33d982ef3b41e4c4c90c
7
+ data.tar.gz: 29d2f6b05daa100dbbd5a4366c415af25f09b4156552f108d07c550653350a1f4da5449bf5e29897205997041dcc7c1f32de457d2941fcccfd57198d67db4f2f
data/.kitchen.yml CHANGED
@@ -15,6 +15,10 @@ suites:
15
15
  - name: chef
16
16
  provisioner:
17
17
  name: chef_zero
18
+ driver:
19
+ dns:
20
+ - 8.8.8.8
21
+ - 199.85.126.10
18
22
 
19
23
  - name: ansible
20
24
  provisioner:
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.12.0
2
+
3
+ * Add `dns` option
4
+
1
5
  ## 0.11.2
2
6
 
3
7
  * Bugfix [#16][]
data/README.md CHANGED
@@ -192,6 +192,20 @@ Examples:
192
192
  instance_host_name: true
193
193
  ```
194
194
 
195
+ ### dns
196
+
197
+ The IP addresses of your DNS servers.
198
+
199
+ ```yml
200
+ dns: 8.8.8.8
201
+ ```
202
+
203
+ ```yml
204
+ dns:
205
+ - 8.8.8.8
206
+ - 8.8.4.4
207
+ ```
208
+
195
209
  ### link
196
210
 
197
211
  Set `container_name`(and alias) of other container(s) that connect from the suite container.
@@ -106,6 +106,7 @@ module Kitchen
106
106
  Array(config[:volumes_from]).each { |vf| cmd << " --volumes-from #{vf}" }
107
107
  Array(config[:link]).each { |link| cmd << " --link #{link}" }
108
108
  Array(config[:expose]).each { |exp| cmd << " --expose #{exp}" }
109
+ Array(config[:dns]).each {|dns| cmd << " --dns #{dns}"}
109
110
  cmd << " #{image} #{config[:command]}"
110
111
  end
111
112
 
@@ -21,6 +21,6 @@ module Kitchen
21
21
  module Driver
22
22
 
23
23
  # Version string for DockerCli Kitchen driver
24
- DOCKER_CLI_VERSION = '0.11.2'
24
+ DOCKER_CLI_VERSION = '0.12.0'
25
25
  end
26
26
  end
@@ -125,12 +125,13 @@ describe Kitchen::Driver::DockerCli, "docker_run_command" do
125
125
  :cpu_shares => 512,
126
126
  :network => 'none',
127
127
  :hostname => 'example.local',
128
- :instance_host_name => true
128
+ :instance_host_name => true,
129
+ :dns => ['8.8.8.8', '8.8.4.4']
129
130
  }
130
131
  end
131
132
 
132
133
  example do
133
- cmd = "run -d -t --name web -P -m 256m -c 512 --privileged --net none -h example.local -p 80:8080 -p 22:2222 -v /dev:/dev --volumes-from data --link mysql:db --expose 80 test /bin/bash"
134
+ cmd = "run -d -t --name web -P -m 256m -c 512 --privileged --net none -h example.local -p 80:8080 -p 22:2222 -v /dev:/dev --volumes-from data --link mysql:db --expose 80 --dns 8.8.8.8 --dns 8.8.4.4 test /bin/bash"
134
135
  expect(@docker_cli.docker_run_command('test')).to eq cmd
135
136
  end
136
137
  end
@@ -0,0 +1,7 @@
1
+ require 'spec_helper'
2
+
3
+ describe file('/etc/resolv.conf') do
4
+ ['8.8.8.8', '199.85.126.10'].each do |h|
5
+ its(:content) { should contain h }
6
+ end
7
+ end
@@ -0,0 +1,3 @@
1
+ require 'serverspec'
2
+
3
+ set :backend, :exec
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kitchen-docker_cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.2
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masashi Terui
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-23 00:00:00.000000000 Z
11
+ date: 2015-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test-kitchen
@@ -129,6 +129,8 @@ files:
129
129
  - spec/kitchen/driver/dockerfile_nil.erb
130
130
  - spec/spec_helper.rb
131
131
  - test/integration/ansible/default.yml
132
+ - test/integration/chef/serverspec/dns_spec.rb
133
+ - test/integration/chef/serverspec/spec_helper.rb
132
134
  homepage: https://github.com/marcy-terui/kitchen-docker_cli
133
135
  licenses:
134
136
  - Apache 2.0
@@ -159,3 +161,5 @@ test_files:
159
161
  - spec/kitchen/driver/dockerfile_nil.erb
160
162
  - spec/spec_helper.rb
161
163
  - test/integration/ansible/default.yml
164
+ - test/integration/chef/serverspec/dns_spec.rb
165
+ - test/integration/chef/serverspec/spec_helper.rb