kitchen-docker_cli 0.6.0 → 0.7.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 +3 -0
- data/CHANGELOG.md +4 -0
- data/README.md +10 -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/default/serverspec/default_spec.rb +4 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3fd86ce137d59b453b7c40eff81cabe41bb47406
|
4
|
+
data.tar.gz: 25505e03b00d59763d76bfea7317648b7d8ddc83
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 107bb0912d3f96908cca31b230f1e99dcc1951110792b0235e6fdfa8d18023122e7c1e6004f42297800efc47003db43e32b1082010993479feafc8c739c1994c
|
7
|
+
data.tar.gz: 7bc23af137f9a17d39571c7a53bc1888b33f284d9e93e178c25ad346b8bb752ef27998aa5e4d2d41fb89cf9fb879c6111b187ea7fceb63bb98c59d27698fe01f
|
data/.kitchen.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -164,6 +164,16 @@ Examples:
|
|
164
164
|
network: host
|
165
165
|
```
|
166
166
|
|
167
|
+
### hostname
|
168
|
+
|
169
|
+
Set hostname to container.
|
170
|
+
|
171
|
+
Examples:
|
172
|
+
|
173
|
+
```yml
|
174
|
+
hostname: example.local
|
175
|
+
```
|
176
|
+
|
167
177
|
### link
|
168
178
|
|
169
179
|
Set `container_name`(and alias) of other container(s) that connect from the suite container.
|
@@ -132,6 +132,7 @@ module Kitchen
|
|
132
132
|
cmd << " -c #{config[:cpu_shares]}" if config[:cpu_shares]
|
133
133
|
cmd << ' --privileged' if config[:privileged]
|
134
134
|
cmd << " --net #{config[:network]}" if config[:network]
|
135
|
+
cmd << " -h #{config[:hostname]}" if config[:hostname]
|
135
136
|
Array(config[:publish]).each { |pub| cmd << " -p #{pub}" }
|
136
137
|
Array(config[:volume]).each { |vol| cmd << " -v #{vol}" }
|
137
138
|
Array(config[:link]).each { |link| cmd << " --link #{link}" }
|
@@ -241,12 +241,13 @@ describe Kitchen::Driver::DockerCli, "docker_run_command" do
|
|
241
241
|
:link => 'mysql:db',
|
242
242
|
:memory_limit => '256m',
|
243
243
|
:cpu_shares => 512,
|
244
|
-
:network => 'none'
|
244
|
+
:network => 'none',
|
245
|
+
:hostname => 'example.local'
|
245
246
|
}
|
246
247
|
end
|
247
248
|
|
248
249
|
example do
|
249
|
-
cmd = "run -d --name web -P -m 256m -c 512 --privileged --net none -p 80:8080 -p 22:2222 -v /dev:/dev --link mysql:db test /bin/bash"
|
250
|
+
cmd = "run -d --name web -P -m 256m -c 512 --privileged --net none -h example.local -p 80:8080 -p 22:2222 -v /dev:/dev --link mysql:db test /bin/bash"
|
250
251
|
expect(@docker_cli.docker_run_command('test')).to eq cmd
|
251
252
|
end
|
252
253
|
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.7.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-02
|
11
|
+
date: 2015-03-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: test-kitchen
|