kitchen-docker 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -69,19 +69,19 @@ The default value is `true`.
69
69
 
70
70
  ### <a name="config-forward"></a> forward
71
71
 
72
- Suite container port(s) to forward to the host machine. You cannot
73
- specify the host port in the mappings, Docker does this for you.
72
+ Suite container port(s) to forward to the host machine. You may specify
73
+ the host (public) port in the mappings, if not, Docker chooses for you.
74
74
 
75
75
  Examples:
76
76
 
77
77
  ```
78
- forward: 8080
78
+ forward: 80
79
79
  ```
80
80
 
81
81
  ```
82
82
  forward:
83
- - 22
84
- - 80
83
+ - 22:2222
84
+ - 80:8080
85
85
  ```
86
86
 
87
87
  ## <a name="development"></a> Development
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ['lib']
20
20
 
21
- spec.add_dependency 'test-kitchen', '~> 1.0.0.alpha.3'
21
+ spec.add_dependency 'test-kitchen', '~> 1.0.0.alpha.7'
22
22
 
23
23
  spec.add_development_dependency 'bundler', '~> 1.3'
24
24
  spec.add_development_dependency 'rake'
@@ -34,6 +34,7 @@ module Kitchen
34
34
  default_config :username, 'kitchen'
35
35
  default_config :password, 'kitchen'
36
36
  default_config :require_chef_omnibus, true
37
+ default_config :remove_images, false
37
38
 
38
39
  def verify_dependencies
39
40
  run_command('docker > /dev/null', :quiet => true)
@@ -52,7 +53,9 @@ module Kitchen
52
53
 
53
54
  def destroy(state)
54
55
  rm_container(state) if state[:container_id]
55
- rm_image(state) if state[:image_id]
56
+ if config[:remove_images] && state[:image_id]
57
+ rm_image(state)
58
+ end
56
59
  end
57
60
 
58
61
  protected
@@ -21,6 +21,6 @@ module Kitchen
21
21
  module Driver
22
22
 
23
23
  # Version string for Docker Kitchen driver
24
- DOCKER_VERSION = "0.2.0"
24
+ DOCKER_VERSION = "0.3.0"
25
25
  end
26
26
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kitchen-docker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,20 +9,20 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-06-24 00:00:00.000000000 Z
12
+ date: 2013-06-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ~>
18
18
  - !ruby/object:Gem::Version
19
- version: 1.0.0.alpha.3
19
+ version: 1.0.0.alpha.7
20
20
  none: false
21
21
  version_requirements: !ruby/object:Gem::Requirement
22
22
  requirements:
23
23
  - - ~>
24
24
  - !ruby/object:Gem::Version
25
- version: 1.0.0.alpha.3
25
+ version: 1.0.0.alpha.7
26
26
  none: false
27
27
  prerelease: false
28
28
  name: test-kitchen
@@ -137,7 +137,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
137
137
  requirements:
138
138
  - - ! '>='
139
139
  - !ruby/object:Gem::Version
140
- hash: 1909028313139145736
140
+ hash: 1226887042038828022
141
141
  version: '0'
142
142
  segments:
143
143
  - 0
@@ -146,7 +146,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
146
146
  requirements:
147
147
  - - ! '>='
148
148
  - !ruby/object:Gem::Version
149
- hash: 1909028313139145736
149
+ hash: 1226887042038828022
150
150
  version: '0'
151
151
  segments:
152
152
  - 0