kitchen-docker_cli 0.7.0 → 0.7.1

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: 3fd86ce137d59b453b7c40eff81cabe41bb47406
4
- data.tar.gz: 25505e03b00d59763d76bfea7317648b7d8ddc83
3
+ metadata.gz: 578fd12a2895cf8cce53b02cc1dffb35f6e43e87
4
+ data.tar.gz: 03d454b75385391c889b8db2e815704672f68892
5
5
  SHA512:
6
- metadata.gz: 107bb0912d3f96908cca31b230f1e99dcc1951110792b0235e6fdfa8d18023122e7c1e6004f42297800efc47003db43e32b1082010993479feafc8c739c1994c
7
- data.tar.gz: 7bc23af137f9a17d39571c7a53bc1888b33f284d9e93e178c25ad346b8bb752ef27998aa5e4d2d41fb89cf9fb879c6111b187ea7fceb63bb98c59d27698fe01f
6
+ metadata.gz: d6ede05041d8b80d95653ff24e401c031b5b5aa24206dffeedb6b64d4fe584aa07669eea4ebd93b155d5e899b4b4f8ec81f1a0089a1ba81b75504de53e1b19d7
7
+ data.tar.gz: a3eaded6a5e0cf8a1d007bef4110622c574580b1e241b1623c4520fd24c4909b69de28debefc3ad084cae92b6da31b49dad9f7850ca6378c143f4aa99be6342c
data/.kitchen.yml CHANGED
@@ -7,7 +7,9 @@ driver_config:
7
7
 
8
8
  platforms:
9
9
  - name: ubuntu-12.04
10
- - name: centos-6.4
10
+ - name: ubuntu-14.04
11
+ - name: centos-6.6
12
+ - name: fedora-20
11
13
 
12
14
  suites:
13
15
  - name: default
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.7.1
2
+
3
+ * Fix error on `fedora`
4
+
1
5
  ## 0.7.0
2
6
 
3
7
  * Add `hostname` option
@@ -125,7 +125,7 @@ module Kitchen
125
125
  end
126
126
 
127
127
  def docker_run_command(image)
128
- cmd = "run -d"
128
+ cmd = "run -d -t"
129
129
  cmd << " --name #{config[:container_name]}" if config[:container_name]
130
130
  cmd << ' -P' if config[:publish_all]
131
131
  cmd << " -m #{config[:memory_limit]}" if config[:memory_limit]
@@ -182,7 +182,7 @@ module Kitchen
182
182
  when 'debian', 'ubuntu'
183
183
  file << 'RUN apt-get update'
184
184
  file << 'RUN apt-get -y install sudo curl tar'
185
- when 'rhel', 'centos'
185
+ when 'rhel', 'centos', 'fedora'
186
186
  file << 'RUN yum clean all'
187
187
  file << 'RUN yum -y install sudo curl tar'
188
188
  else
@@ -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.7.0'
24
+ DOCKER_CLI_VERSION = '0.7.1'
25
25
  end
26
26
  end
@@ -224,7 +224,7 @@ describe Kitchen::Driver::DockerCli, "docker_run_command" do
224
224
  let(:config) { {:command => '/bin/bash'} }
225
225
 
226
226
  example do
227
- cmd = "run -d test /bin/bash"
227
+ cmd = "run -d -t test /bin/bash"
228
228
  expect(@docker_cli.docker_run_command('test')).to eq cmd
229
229
  end
230
230
  end
@@ -247,7 +247,7 @@ describe Kitchen::Driver::DockerCli, "docker_run_command" do
247
247
  end
248
248
 
249
249
  example do
250
- cmd = "run -d --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"
250
+ 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"
251
251
  expect(@docker_cli.docker_run_command('test')).to eq cmd
252
252
  end
253
253
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kitchen-docker_cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masashi Terui