kitchen-docker 2.8.0 → 2.9.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.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.kitchen.yml +8 -4
- data/.travis.yml +6 -5
- data/CHANGELOG.md +5 -0
- data/README.md +9 -8
- data/lib/kitchen/driver/docker.rb +11 -3
- data/lib/kitchen/driver/docker_version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0a62c9e97edfb2215e2ad0f991eb88da0d9629e833af0165a78ebf7899894a81
|
|
4
|
+
data.tar.gz: be82c57778795e8d4b0866ff0b7451eaf499ff81f71703cd3d92cdd2ec92f562
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 68bba42a990ad9335cc62be341448857a7c53312ff210366876f569a42f90e53f1a05fdb80aa263d26e4e2daaeea29fb2a79348fbdefe130ba4d53949aae2ecc
|
|
7
|
+
data.tar.gz: 886d05137ffe4d7898f1865b7c03d4f504e9c1da7516b920685a32d5592d234cbd0c01d8a222ee266edb6504a85f95b6d2aef590c15131cdd8f89ac452e6f5a1
|
data/.gitignore
CHANGED
data/.kitchen.yml
CHANGED
|
@@ -10,16 +10,20 @@ provisioner:
|
|
|
10
10
|
name: dummy
|
|
11
11
|
|
|
12
12
|
platforms:
|
|
13
|
-
- name:
|
|
13
|
+
- name: amazonlinux-2
|
|
14
14
|
- name: ubuntu-16.04
|
|
15
|
+
- name: ubuntu-18.04
|
|
16
|
+
- name: fedora-latest
|
|
15
17
|
- name: centos-6
|
|
16
18
|
- name: centos-7
|
|
17
19
|
- name: oraclelinux-6
|
|
18
20
|
- name: oraclelinux-7
|
|
19
21
|
- name: debian-8
|
|
20
|
-
- name:
|
|
22
|
+
- name: debian-9
|
|
23
|
+
- name: opensuse-42.3
|
|
21
24
|
driver:
|
|
22
|
-
image: opensuse:42.
|
|
25
|
+
image: opensuse:42.3
|
|
26
|
+
- name: opensuse/leap-42
|
|
23
27
|
# - name: arch
|
|
24
28
|
# driver:
|
|
25
29
|
# image: base/archlinux
|
|
@@ -43,7 +47,7 @@ suites:
|
|
|
43
47
|
driver:
|
|
44
48
|
build_context: false
|
|
45
49
|
- name: capabilities
|
|
46
|
-
|
|
50
|
+
includes: [debian-8,debian-9,ubuntu-16.04,ubuntu-18.04]
|
|
47
51
|
driver:
|
|
48
52
|
provision_command:
|
|
49
53
|
- curl -L https://www.chef.io/chef/install.sh | bash
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Kitchen-Docker Changelog
|
|
2
2
|
|
|
3
|
+
## 2.9.0 - Mar 15, 2019
|
|
4
|
+
|
|
5
|
+
* Add automatic OS detection for amazonlinux, opensuse/leap, and opensuse/tumbleweed
|
|
6
|
+
* On Fedora containers uses dnf to setup the OS not yum
|
|
7
|
+
|
|
3
8
|
## 2.8.0 - Jan 18, 2019
|
|
4
9
|
|
|
5
10
|
* Add new config option `use_internal_docker_network`, which allows running Docker within Docker. See readme for usage details.
|
data/README.md
CHANGED
|
@@ -44,8 +44,8 @@ Examples:
|
|
|
44
44
|
```yaml
|
|
45
45
|
---
|
|
46
46
|
platforms:
|
|
47
|
-
- name: ubuntu-
|
|
48
|
-
- name: centos-
|
|
47
|
+
- name: ubuntu-18.04
|
|
48
|
+
- name: centos-7
|
|
49
49
|
```
|
|
50
50
|
|
|
51
51
|
This will effectively generate a configuration similar to:
|
|
@@ -53,13 +53,13 @@ This will effectively generate a configuration similar to:
|
|
|
53
53
|
```yaml
|
|
54
54
|
---
|
|
55
55
|
platforms:
|
|
56
|
-
- name: ubuntu-
|
|
56
|
+
- name: ubuntu-18.04
|
|
57
57
|
driver_config:
|
|
58
|
-
image: ubuntu:
|
|
58
|
+
image: ubuntu:18.04
|
|
59
59
|
platform: ubuntu
|
|
60
|
-
- name: centos-
|
|
60
|
+
- name: centos-7
|
|
61
61
|
driver_config:
|
|
62
|
-
image: centos:
|
|
62
|
+
image: centos:7
|
|
63
63
|
platform: centos
|
|
64
64
|
```
|
|
65
65
|
|
|
@@ -129,10 +129,11 @@ Configuration section for more details).
|
|
|
129
129
|
The platform of the chosen image. This is used to properly bootstrap the
|
|
130
130
|
suite container for Test Kitchen. Kitchen Docker currently supports:
|
|
131
131
|
|
|
132
|
+
* `arch`
|
|
132
133
|
* `debian` or `ubuntu`
|
|
133
|
-
* `rhel` or `
|
|
134
|
+
* `amazonlinux`, `rhel`, `centos`, `fedora` or `oraclelinux`
|
|
134
135
|
* `gentoo` or `gentoo-paludis`
|
|
135
|
-
* `opensuse` or `sles`
|
|
136
|
+
* `opensuse/tumbleweed`, `opensuse/leap`, `opensuse` or `sles`
|
|
136
137
|
|
|
137
138
|
The default will be computed, using the platform name (see the Default
|
|
138
139
|
Configuration section for more details).
|
|
@@ -91,7 +91,7 @@ module Kitchen
|
|
|
91
91
|
run_command("#{config[:binary]} >> #{dev_null} 2>&1", quiet: true, use_sudo: config[:use_sudo])
|
|
92
92
|
rescue
|
|
93
93
|
raise UserError,
|
|
94
|
-
'You must first install the Docker CLI tool
|
|
94
|
+
'You must first install the Docker CLI tool https://www.docker.com/get-started'
|
|
95
95
|
end
|
|
96
96
|
|
|
97
97
|
def dev_null
|
|
@@ -216,7 +216,7 @@ module Kitchen
|
|
|
216
216
|
RUN apt-get install -y sudo openssh-server curl lsb-release
|
|
217
217
|
eos
|
|
218
218
|
config[:disable_upstart] ? disable_upstart + packages : packages
|
|
219
|
-
when 'rhel', 'centos', '
|
|
219
|
+
when 'rhel', 'centos', 'oraclelinux', 'amazonlinux'
|
|
220
220
|
<<-eos
|
|
221
221
|
ENV container docker
|
|
222
222
|
RUN yum clean all
|
|
@@ -224,7 +224,15 @@ module Kitchen
|
|
|
224
224
|
RUN [ -f "/etc/ssh/ssh_host_rsa_key" ] || ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N ''
|
|
225
225
|
RUN [ -f "/etc/ssh/ssh_host_dsa_key" ] || ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key -N ''
|
|
226
226
|
eos
|
|
227
|
-
when '
|
|
227
|
+
when 'fedora'
|
|
228
|
+
<<-eos
|
|
229
|
+
ENV container docker
|
|
230
|
+
RUN dnf clean all
|
|
231
|
+
RUN dnf install -y sudo openssh-server openssh-clients which curl
|
|
232
|
+
RUN [ -f "/etc/ssh/ssh_host_rsa_key" ] || ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N ''
|
|
233
|
+
RUN [ -f "/etc/ssh/ssh_host_dsa_key" ] || ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key -N ''
|
|
234
|
+
eos
|
|
235
|
+
when 'opensuse/tumbleweed', 'opensuse/leap', 'opensuse', 'sles'
|
|
228
236
|
<<-eos
|
|
229
237
|
ENV container docker
|
|
230
238
|
RUN zypper install -y sudo openssh which curl
|
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: 2.
|
|
4
|
+
version: 2.9.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: 2019-
|
|
11
|
+
date: 2019-03-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: test-kitchen
|
|
@@ -230,7 +230,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
230
230
|
- !ruby/object:Gem::Version
|
|
231
231
|
version: '0'
|
|
232
232
|
requirements: []
|
|
233
|
-
rubygems_version: 3.0.
|
|
233
|
+
rubygems_version: 3.0.3
|
|
234
234
|
signing_key:
|
|
235
235
|
specification_version: 4
|
|
236
236
|
summary: A Docker Driver for Test Kitchen
|