kitchen-docker 0.9.0 → 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: 2739fe136af5fc12187dc12311614fc6ff543e5f
4
- data.tar.gz: 8cf6f0f2da67f247289076f05e25030faa0ef616
3
+ metadata.gz: 8bd94e336b2efec8e0f305e3f8b95c65520187f4
4
+ data.tar.gz: cb4dc3cba3379999ab3a4dd1227107744f75a592
5
5
  SHA512:
6
- metadata.gz: 83cc959ba5834d55b19779a3c864a5682f63b010bf4d2aacb05ba465e997da4a2b43dccbb664ac47fef4e31dae5e3b8cc5f6867c9a882b5f9c630e57fd724b38
7
- data.tar.gz: 87b9510146a4aaa80c79d942b4be82baff3fc93a0dac2d210098ff0cacbecc1fb883ab1400e909144bb898ba19c25071c4fa5e4266072e3e9473cfaa27842510
6
+ metadata.gz: 966c5f71094442cb47883f6409ffa23b71afaee64b592f0af3057ebc9ec87ff85c5cecf6861212d858a2b985e82cb090000e315e66ab9c01bf795e82ff71c95d
7
+ data.tar.gz: 1ea742d4ecb65e10dd1ceeda80bf3f5d866e53220502778989b02227be561f034a322c702a590d2ee722299c10c118dba2fd25bfd5e8576cb4f4c3d30859dfc6
data/README.md CHANGED
@@ -63,11 +63,11 @@ platforms:
63
63
 
64
64
  ### socket
65
65
 
66
- The Docker daemon socket to use. By default, Docker it will listen on
66
+ The Docker daemon socket to use. By default, Docker will listen on
67
67
  `unix:///var/run/docker.sock`, and no configuration here is required. If
68
68
  Docker is binding to another host/port or Unix socket, you will need to set
69
69
  this option. If a TCP socket is set, its host will be used for SSH access
70
- to containers.
70
+ to suite containers.
71
71
 
72
72
  Examples:
73
73
 
@@ -124,7 +124,7 @@ Custom command(s) to be run when provisioning the base for the suite containers.
124
124
  Examples:
125
125
 
126
126
  ```
127
- provision_command: "curl -L https://www.opscode.com/chef/install.sh | sudo bash"
127
+ provision_command: "curl -L https://www.opscode.com/chef/install.sh | bash"
128
128
  ```
129
129
 
130
130
  ```
@@ -135,7 +135,7 @@ Examples:
135
135
 
136
136
  ```
137
137
  driver_config:
138
- provision_command: "curl -L https://www.opscode.com/chef/install.sh | sudo bash"
138
+ provision_command: "curl -L https://www.opscode.com/chef/install.sh | bash"
139
139
  require_chef_omnibus: false
140
140
  ```
141
141
 
@@ -148,14 +148,13 @@ The default value is `false`.
148
148
 
149
149
  ### memory
150
150
 
151
- Sets the memory limit for the container. The value must be set in bytes.
152
- If not, set it defaults to dockers default settings. You can read more about
153
- `memory.limit_in_bytes` [here][memory_limit_in_bytes].
151
+ Sets the memory limit for the suite container in bytes. Otherwise use Dockers
152
+ default. You can read more about `memory.limit_in_bytes` [here][memory_limit].
154
153
 
155
154
  ### cpu
156
155
 
157
- Sets the cpu shares (relative weight). If not set, it defaults to dockers
158
- default settings. You can read more about cpu.shares [here][cpu_shares].
156
+ Sets the CPU shares (relative weight) for the suite container. Otherwise use
157
+ Dockers defaults. You can read more about cpu.shares [here][cpu_shares].
159
158
 
160
159
  ### volume
161
160
 
@@ -176,7 +175,7 @@ Examples:
176
175
  ## dns
177
176
 
178
177
  Adjusts `resolv.conf` to use the dns servers specified. Otherwise use
179
- dockers defaults.
178
+ Dockers defaults.
180
179
 
181
180
  Examples:
182
181
 
@@ -192,7 +191,7 @@ Examples:
192
191
 
193
192
  ### forward
194
193
 
195
- Suite container port(s) to forward to the host machine. You may specify
194
+ Set suite container port(s) to forward to the host machine. You may specify
196
195
  the host (public) port in the mappings, if not, Docker chooses for you.
197
196
 
198
197
  Examples:
@@ -207,6 +206,29 @@ Examples:
207
206
  - 80:8080
208
207
  ```
209
208
 
209
+ ### hostname
210
+
211
+ Set the suite container hostname. Otherwise use Dockers default.
212
+
213
+ Examples:
214
+
215
+ ```
216
+ hostname: foobar.local
217
+ ```
218
+
219
+ ### privileged
220
+
221
+ Run the suite container in privileged mode. This allows certain functionality
222
+ inside the Docker container which is not otherwise permitted.
223
+
224
+ The default value is `false`.
225
+
226
+ Examples:
227
+
228
+ ```
229
+ privileged: true
230
+ ```
231
+
210
232
  ## Development
211
233
 
212
234
  * Source hosted at [GitHub][repo]
@@ -242,4 +264,4 @@ Apache 2.0 (see [LICENSE][license])
242
264
  [driver_usage]: http://docs.kitchen-ci.org/drivers/usage
243
265
  [chef_omnibus_dl]: http://www.opscode.com/chef/install/
244
266
  [cpu_shares]: https://docs.fedoraproject.org/en-US/Fedora/17/html/Resource_Management_Guide/sec-cpu.html
245
- [memory_limit_in_bytes]: https://docs.fedoraproject.org/en-US/Fedora/17/html/Resource_Management_Guide/sec-memory.html
267
+ [memory_limit]: https://docs.fedoraproject.org/en-US/Fedora/17/html/Resource_Management_Guide/sec-memory.html
@@ -30,6 +30,7 @@ module Kitchen
30
30
  default_config :password, 'kitchen'
31
31
  default_config :require_chef_omnibus, true
32
32
  default_config :remove_images, false
33
+ default_config :privileged, false
33
34
  default_config :use_sudo, true
34
35
 
35
36
  default_config :image do |driver|
@@ -153,8 +154,10 @@ module Kitchen
153
154
  Array(config[:forward]).each {|port| cmd << " -p #{port}"}
154
155
  Array(config[:dns]).each {|dns| cmd << " -dns #{dns}"}
155
156
  Array(config[:volume]).each {|volume| cmd << " -v #{volume}"}
157
+ cmd << " -h #{config[:hostname]}" if config[:hostname]
156
158
  cmd << " -m #{config[:memory]}" if config[:memory]
157
159
  cmd << " -c #{config[:cpu]}" if config[:cpu]
160
+ cmd << " -privileged" if config[:privileged]
158
161
  cmd << " #{image_id} /usr/sbin/sshd -D -o UseDNS=no -o UsePAM=no"
159
162
  cmd
160
163
  end
@@ -19,6 +19,6 @@ module Kitchen
19
19
  module Driver
20
20
 
21
21
  # Version string for Docker Kitchen driver
22
- DOCKER_VERSION = "0.9.0"
22
+ DOCKER_VERSION = "0.10.0"
23
23
  end
24
24
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kitchen-docker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Porter
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-15 00:00:00.000000000 Z
11
+ date: 2013-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test-kitchen