kitchen-docker_cli 0.9.1 → 0.10.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 +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +16 -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 +2 -1
- metadata +2 -3
- data/circle.yml +0 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 891eba7c6a7936337875c7e2c019e5e9cb8ee836
|
4
|
+
data.tar.gz: e3cffe6b317c03a15ad962dd1097772aa295fed7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 580b247a7529255ca75d15eb832347a3ae6dc717d3dc3189036e6b31e538d86f836c05986f690f5eebdfac1f558f6db9ddf536cc0ad8228cc14759e4d69566ba
|
7
|
+
data.tar.gz: 193bbdeb76dac5e26f2c33d882b7c802c4e63805fbc1791638826758eb036080b10bbe20ea6e51ccfd2fadb51f685b62756f1608b955706339972a4e3d9773fe
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -255,6 +255,22 @@ Examples:
|
|
255
255
|
- <%= Dir::pwd %>:/var:rw
|
256
256
|
```
|
257
257
|
|
258
|
+
### volumes_from
|
259
|
+
|
260
|
+
Mount data volume(s) from other container(s).
|
261
|
+
|
262
|
+
Examples:
|
263
|
+
|
264
|
+
```yml
|
265
|
+
volumes_from: container_name
|
266
|
+
```
|
267
|
+
|
268
|
+
```yml
|
269
|
+
volumes_from:
|
270
|
+
- container_a
|
271
|
+
- container_b
|
272
|
+
```
|
273
|
+
|
258
274
|
### dockerfile
|
259
275
|
|
260
276
|
Create test image using a supplied Dockerfile, instead of the default Dockerfile created.
|
@@ -103,6 +103,7 @@ module Kitchen
|
|
103
103
|
end
|
104
104
|
Array(config[:publish]).each { |pub| cmd << " -p #{pub}" }
|
105
105
|
Array(config[:volume]).each { |vol| cmd << " -v #{vol}" }
|
106
|
+
Array(config[:volumes_from]).each { |vf| cmd << " --volumes-from #{vf}" }
|
106
107
|
Array(config[:link]).each { |link| cmd << " --link #{link}" }
|
107
108
|
cmd << " #{image} #{config[:command]}"
|
108
109
|
end
|
@@ -118,6 +118,7 @@ describe Kitchen::Driver::DockerCli, "docker_run_command" do
|
|
118
118
|
:privileged => true,
|
119
119
|
:publish => ['80:8080', '22:2222'],
|
120
120
|
:volume => '/dev:/dev',
|
121
|
+
:volumes_from => 'data',
|
121
122
|
:link => 'mysql:db',
|
122
123
|
:memory_limit => '256m',
|
123
124
|
:cpu_shares => 512,
|
@@ -128,7 +129,7 @@ describe Kitchen::Driver::DockerCli, "docker_run_command" do
|
|
128
129
|
end
|
129
130
|
|
130
131
|
example do
|
131
|
-
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 --link mysql:db test /bin/bash"
|
132
|
+
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 test /bin/bash"
|
132
133
|
expect(@docker_cli.docker_run_command('test')).to eq cmd
|
133
134
|
end
|
134
135
|
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.10.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-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: test-kitchen
|
@@ -110,7 +110,6 @@ files:
|
|
110
110
|
- LICENSE
|
111
111
|
- README.md
|
112
112
|
- Rakefile
|
113
|
-
- circle.yml
|
114
113
|
- integration-test/.gitignore
|
115
114
|
- integration-test/.kitchen.yml
|
116
115
|
- integration-test/Gemfile
|
data/circle.yml
DELETED