kitchen-docker_cli 0.9.1 → 0.10.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: a6c75bef1be02229951e309089476996c89eedd4
4
- data.tar.gz: 208335c455ac0e33b9288a20c62b6e7b314f66e7
3
+ metadata.gz: 891eba7c6a7936337875c7e2c019e5e9cb8ee836
4
+ data.tar.gz: e3cffe6b317c03a15ad962dd1097772aa295fed7
5
5
  SHA512:
6
- metadata.gz: 4d76af1e6d52ad14d63af9f278032a7a1191a4d2fc1f98adfc4f043c72f5fc4dc2de54d20a8a768f659c436afa06f464186308945e2c8f5054d4ab7b7f4b6a0f
7
- data.tar.gz: 5acc2d85837073b3c7ee3a58f4363ce1e4ea624dd25dcfc92f9c24e0acc42264e081772ede8008772ec2ca60835f856c8dc967138b3e2e98cb41a95fe20c31c3
6
+ metadata.gz: 580b247a7529255ca75d15eb832347a3ae6dc717d3dc3189036e6b31e538d86f836c05986f690f5eebdfac1f558f6db9ddf536cc0ad8228cc14759e4d69566ba
7
+ data.tar.gz: 193bbdeb76dac5e26f2c33d882b7c802c4e63805fbc1791638826758eb036080b10bbe20ea6e51ccfd2fadb51f685b62756f1608b955706339972a4e3d9773fe
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.10.0
2
+
3
+ * Add `volumes_from` option
4
+
1
5
  ## 0.9.1
2
6
 
3
7
  * Bugfix
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
@@ -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.9.1'
24
+ DOCKER_CLI_VERSION = '0.10.0'
25
25
  end
26
26
  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.9.1
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-12 00:00:00.000000000 Z
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
@@ -1,15 +0,0 @@
1
- ---
2
- machine:
3
- ruby:
4
- version: 2.1.5
5
- services:
6
- - docker
7
-
8
- dependencies:
9
- override:
10
- - bundle install --path=vendor/bundle:
11
- pwd: integration-test
12
- test:
13
- override:
14
- - bundle exec kitchen test:
15
- pwd: integration-test