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 +4 -4
- data/.kitchen.yml +4 -0
- data/CHANGELOG.md +4 -0
- data/README.md +14 -0
- data/lib/kitchen/driver/docker_cli.rb +1 -0
- data/lib/kitchen/driver/docker_cli_version.rb +1 -1
- data/spec/kitchen/driver/docker_cli_spec.rb +3 -2
- data/test/integration/chef/serverspec/dns_spec.rb +7 -0
- data/test/integration/chef/serverspec/spec_helper.rb +3 -0
- metadata +6 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 59f4ff9d93ea123fbe449de146d4204624188a7f
|
4
|
+
data.tar.gz: 80110e3e1f6d1e62f70cec1c5636810ac1f2b2af
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8814b04067321e872576e35844a25c6f6bf0e1f86ba84e7f01e129e8a76da22f4953559925179a56facf0bbd960296b61b2fc8acc8bd33d982ef3b41e4c4c90c
|
7
|
+
data.tar.gz: 29d2f6b05daa100dbbd5a4366c415af25f09b4156552f108d07c550653350a1f4da5449bf5e29897205997041dcc7c1f32de457d2941fcccfd57198d67db4f2f
|
data/.kitchen.yml
CHANGED
data/CHANGELOG.md
CHANGED
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
|
|
@@ -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
|
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.
|
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-
|
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
|