forked from sous-chefs/docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
kitchen.yml
178 lines (155 loc) · 3.33 KB
/
kitchen.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
---
driver:
name: dokken
privileged: true # because Docker and SystemD/Upstart
chef_version: <%= ENV['CHEF_VERSION'] || 'current' %>
chef_license: accept-no-persist
volumes: [
'/var/lib/docker', '/var/lib/docker-one', '/var/lib/docker-two'
]
transport:
name: dokken
provisioner:
name: dokken
deprecations_as_errors: true
chef_license: accept-no-persist
verifier:
name: inspec
platforms:
- name: amazonlinux-2
driver:
image: dokken/amazonlinux-2
pid_one_command: /usr/lib/systemd/systemd
- name: debian-9
driver:
image: dokken/debian-9
pid_one_command: /bin/systemd
intermediate_instructions:
- RUN /usr/bin/apt-get update
- name: debian-10
driver:
image: dokken/debian-10
pid_one_command: /bin/systemd
intermediate_instructions:
- RUN /usr/bin/apt-get update
- name: centos-7
driver:
image: dokken/centos-7
pid_one_command: /usr/lib/systemd/systemd
- name: fedora-latest
driver:
image: dokken/fedora-latest
pid_one_command: /usr/lib/systemd/systemd
- name: ubuntu-16.04
driver:
image: dokken/ubuntu-16.04
pid_one_command: /bin/systemd
intermediate_instructions:
- RUN /usr/bin/apt-get update
- name: ubuntu-18.04
driver:
image: dokken/ubuntu-18.04
pid_one_command: /bin/systemd
suites:
###############################
# docker_installation resources
###############################
- name: installation_script_main
includes: [
'ubuntu-16.04',
'ubuntu-18.04'
]
attributes:
docker:
repo: 'main'
run_list:
- recipe[docker_test::installation_script]
- name: installation_script_test
includes: [
'ubuntu-16.04',
'ubuntu-18.04'
]
attributes:
docker:
repo: 'test'
run_list:
- recipe[docker_test::installation_script]
- name: installation_script_experimental
includes: [
'ubuntu-16.04',
'ubuntu-18.04'
]
attributes:
docker:
repo: 'experimental'
run_list:
- recipe[docker_test::installation_script]
- name: installation_package
attributes:
docker:
version: '19.03'
run_list:
- recipe[docker_test::installation_package]
- name: installation_tarball
attributes:
docker:
version: '19.03'
run_list:
- recipe[docker_test::installation_tarball]
includes: [
'ubuntu-16.04',
'ubuntu-18.04'
]
##################
# resource testing
##################
- name: resources
attributes:
docker:
version: '19.03'
run_list:
- recipe[docker_test::default]
- recipe[docker_test::image]
- recipe[docker_test::container]
- recipe[docker_test::exec]
- recipe[docker_test::plugin]
- name: network
includes: [
'ubuntu-16.04',
]
attributes:
docker:
version: '19.03'
run_list:
- recipe[docker_test::default]
- recipe[docker_test::network]
- name: volume
includes: [
'ubuntu-16.04',
]
attributes:
docker:
version: '19.03'
run_list:
- recipe[docker_test::default]
- recipe[docker_test::volume]
- name: registry
includes: [
'ubuntu-16.04',
]
attributes:
docker:
version: '19.03'
run_list:
- recipe[docker_test::default]
- recipe[docker_test::registry]
#############################
# quick service smoke testing
#############################
- name: smoke
includes: [
'ubuntu-16.04',
'ubuntu-18.04'
]
run_list:
- recipe[docker_test::smoke]