kitchen-docker 0.4.0 → 0.5.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.
data/README.md CHANGED
@@ -67,6 +67,28 @@ installed. There are several different behaviors available:
67
67
 
68
68
  The default value is `true`.
69
69
 
70
+ ### provision\_command
71
+
72
+ Custom command(s) to be run when provisioning the base for the suite containers.
73
+
74
+ Examples:
75
+
76
+ ```
77
+ provision_command: "curl -L https://www.opscode.com/chef/install.sh | sudo bash"
78
+ ```
79
+
80
+ ```
81
+ provision_command:
82
+ - "apt-get install dnsutils"
83
+ - "apt-get install telnet"
84
+ ```
85
+
86
+ ```
87
+ driver_config:
88
+ provision_command: "curl -L https://www.opscode.com/chef/install.sh | sudo bash"
89
+ require_chef_omnibus: false
90
+ ```
91
+
70
92
  ### remove\_images
71
93
 
72
94
  This determines if images are automatically removed when the suite container is
@@ -87,7 +109,7 @@ default settings. You can read more about cpu.shares [here][cpu_shares].
87
109
 
88
110
  ### volume
89
111
 
90
- Adds a data volume to your container.
112
+ Adds a data volume(s) to your container.
91
113
 
92
114
  Examples:
93
115
 
@@ -92,7 +92,11 @@ module Kitchen
92
92
  RUN echo #{username}:#{password} | chpasswd
93
93
  RUN echo '#{username} ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
94
94
  eos
95
- [from, platform, base].join("\n")
95
+ custom = ''
96
+ Array(config[:provision_command]).each do |cmd|
97
+ custom << "RUN #{cmd}\n"
98
+ end
99
+ [from, platform, base, custom].join("\n")
96
100
  end
97
101
 
98
102
  def parse_image_id(output)
@@ -21,6 +21,6 @@ module Kitchen
21
21
  module Driver
22
22
 
23
23
  # Version string for Docker Kitchen driver
24
- DOCKER_VERSION = "0.4.0"
24
+ DOCKER_VERSION = "0.5.0"
25
25
  end
26
26
  end
metadata CHANGED
@@ -2,14 +2,14 @@
2
2
  name: kitchen-docker
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.4.0
5
+ version: 0.5.0
6
6
  platform: ruby
7
7
  authors:
8
8
  - Sean Porter
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-07-17 00:00:00.000000000 Z
12
+ date: 2013-07-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  type: :runtime