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 +4 -4
- data/.kitchen.yml +3 -1
- data/CHANGELOG.md +4 -0
- data/lib/kitchen/driver/docker_cli.rb +2 -2
- data/lib/kitchen/driver/docker_cli_version.rb +1 -1
- data/spec/kitchen/driver/docker_cli_spec.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 578fd12a2895cf8cce53b02cc1dffb35f6e43e87
|
4
|
+
data.tar.gz: 03d454b75385391c889b8db2e815704672f68892
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d6ede05041d8b80d95653ff24e401c031b5b5aa24206dffeedb6b64d4fe584aa07669eea4ebd93b155d5e899b4b4f8ec81f1a0089a1ba81b75504de53e1b19d7
|
7
|
+
data.tar.gz: a3eaded6a5e0cf8a1d007bef4110622c574580b1e241b1623c4520fd24c4909b69de28debefc3ad084cae92b6da31b49dad9f7850ca6378c143f4aa99be6342c
|
data/.kitchen.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -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
|
@@ -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
|