-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Expand file tree
/
Copy pathconfig.sh
More file actions
346 lines (328 loc) · 6.13 KB
/
config.sh
File metadata and controls
346 lines (328 loc) · 6.13 KB
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
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
#!/usr/bin/env bash
globalTests+=(
utc
no-hard-coded-passwords
override-cmd
)
# for "explicit" images, only run tests that are explicitly specified for that image/variant
explicitTests+=(
[:onbuild]=1
)
imageTests[:onbuild]+='
override-cmd
'
testAlias+=(
[amazoncorretto]='openjdk'
[adoptopenjdk]='openjdk'
[eclipse-temurin]='openjdk'
[sapmachine]='openjdk'
[ibm-semeru-runtimes]='openjdk'
[jruby]='ruby'
[pypy]='python'
[ubuntu]='debian'
[mariadb]='mysql'
[percona]='mysql'
[percona:psmdb]='mongo'
)
imageTests+=(
[aerospike]='
'
[busybox]='
'
[cassandra]='
cassandra-basics
'
[clojure]='
'
[crate]='
'
[composer]='
composer
'
[convertigo]='
convertigo-hello-world
'
[dart]='
dart-hello-world
'
[debian]='
debian-apt-get
'
[docker:dind]='
docker-dind
docker-registry-push-pull
'
[eclipse-mosquitto]='
eclipse-mosquitto-basics
'
[elixir]='
elixir-hello-world
'
[erlang]='
erlang-hello-world
'
[gcc]='
gcc-c-hello-world
gcc-cpp-hello-world
golang-hello-world
'
[ghost]='
ghost-basics
'
[glassfish]='
glassfish
'
[golang]='
golang-hello-world
'
[haproxy]='
haproxy-basics
'
[haskell]='
haskell-cabal
haskell-stack
haskell-ghci
haskell-runhaskell
'
[haxe]='
haxe-hello-world
haxe-haxelib-install
'
[hylang]='
hylang-sh
hylang-hello-world
'
[jetty]='
jetty-hello-web
'
[julia]='
julia-hello-world
julia-downloads
'
[logstash]='
logstash-basics
'
[matomo:apache]='
matomo-apache-run
'
[matomo:fpm]='
matomo-fpm-run
'
[memcached]='
memcached-basics
'
[mongo]='
mongo-basics
mongo-auth-basics
mongo-tls-basics
mongo-tls-auth
'
[monica]='
monica-cli
monica-cli-mysql8
monica-cli-mariadb10
'
[monica:apache]='
monica-apache-run
'
[monica:fpm]='
monica-fpm-run
'
[monica:fpm-alpine]='
monica-fpm-run
'
[mongo-express]='
mongo-express-run
'
[mono]='
'
[mysql]='
mysql-basics
mysql-initdb
mysql-log-bin
'
[nextcloud]='
nextcloud-cli
'
[nextcloud:apache]='
nextcloud-apache-run
'
[nextcloud:fpm]='
nextcloud-fpm-run
'
[node]='
node-hello-world
'
[nuxeo]='
nuxeo-conf
nuxeo-basics
'
[openjdk]='
java-hello-world
java-uimanager-font
java-ca-certificates
'
[open-liberty]='
open-liberty-hello-world
'
[percona]='
percona-tokudb
percona-rocksdb
'
[perl]='
perl-hello-world
perl-cpanm
'
[php]='
php-ext-install
php-hello-world
php-argon2
'
[php:apache]='
php-apache-hello-web
'
[php:fpm]='
php-fpm-hello-web
'
[plone]='
plone-basics
plone-addons
plone-cors
plone-versions
plone-zeoclient
plone-zeosite
'
[postfixadmin:apache]='
postfixadmin-apache-run
'
[postfixadmin:fpm]='
postfixadmin-fpm-run
'
[postgres]='
postgres-basics
postgres-initdb
'
[python]='
python-imports
python-no-pyc
python-pip-requests-ssl
python-sqlite3
python-stack-size
'
[rabbitmq]='
rabbitmq-basics
rabbitmq-tls
'
[r-base]='
'
[redis]='
redis-basics
redis-basics-tls
redis-basics-config
redis-basics-persistent
'
[redmine]='
redmine-basics
'
[registry]='
docker-registry-push-pull
'
[rethinkdb]='
'
[ruby]='
ruby-hello-world
ruby-standard-libs
ruby-gems
ruby-bundler
ruby-nonroot
ruby-binstubs
ruby-native-extension
'
[rust]='
rust-hello-world
'
[silverpeas]='
silverpeas-basics
'
[spiped]='
spiped-basics
'
[swipl]='
swipl-modules
'
[swift]='
swift-hello-world
'
[tomcat]='
tomcat-hello-world
'
[varnish]='
varnish
'
[wordpress:apache]='
wordpress-apache-run
'
[wordpress:fpm]='
wordpress-fpm-run
'
[znc]='
znc-basics
'
[zookeeper]='
zookeeper-basics
'
)
globalExcludeTests+=(
# single-binary images
[hello-world_no-hard-coded-passwords]=1
[hello-world_utc]=1
[nats-streaming_no-hard-coded-passwords]=1
[nats-streaming_utc]=1
[nats_no-hard-coded-passwords]=1
[nats_utc]=1
[traefik_no-hard-coded-passwords]=1
[traefik_utc]=1
# clearlinux has no /etc/passwd
# https://github.com/docker-library/official-images/pull/1721#issuecomment-234128477
[clearlinux_no-hard-coded-passwords]=1
# alpine/slim/nanoserver openjdk images are headless and so can't do font stuff
[openjdk:alpine_java-uimanager-font]=1
[openjdk:slim_java-uimanager-font]=1
[openjdk:nanoserver_java-uimanager-font]=1
# the Swift slim images are not expected to be able to run the swift-hello-world test because it involves compiling Swift code. The slim images are for running an already built binary.
# https://github.com/docker-library/official-images/pull/6302#issuecomment-512181863
[swift:slim_swift-hello-world]=1
# The new tag kernel-slim provides the bare minimum server image for users to build upon to create their application images.
# https://github.com/docker-library/official-images/pull/8993#issuecomment-723328400
[open-liberty:slim_open-liberty-hello-world]=1
# no "native" dependencies
[ruby:alpine_ruby-bundler]=1
[ruby:alpine_ruby-gems]=1
[ruby:slim_ruby-bundler]=1
[ruby:slim_ruby-gems]=1
# MySQL-assuming tests cannot be run on MongoDB-providing images
[percona:psmdb_percona-tokudb]=1
[percona:psmdb_percona-rocksdb]=1
# windows!
[:nanoserver_no-hard-coded-passwords]=1
[:nanoserver_utc]=1
[:windowsservercore_no-hard-coded-passwords]=1
[:windowsservercore_utc]=1
# https://github.com/docker-library/official-images/pull/2578#issuecomment-274889851
[nats:nanoserver_override-cmd]=1
[nats:windowsservercore_override-cmd]=1
[nats-streaming:nanoserver_override-cmd]=1
[nats-streaming:windowsservercore_override-cmd]=1
# https://github.com/docker-library/official-images/pull/8329#issuecomment-656383836
[traefik:windowsservercore_override-cmd]=1
[traefik:nanoserver_override-cmd]=1
# TODO adjust MongoDB tests to use docker networks instead of links so they can work on Windows (and consider using PowerShell to generate appropriate certificates for TLS tests instead of openssl)
[mongo:nanoserver_mongo-basics]=1
[mongo:nanoserver_mongo-auth-basics]=1
[mongo:nanoserver_mongo-tls-basics]=1
[mongo:nanoserver_mongo-tls-auth]=1
[mongo:windowsservercore_mongo-basics]=1
[mongo:windowsservercore_mongo-auth-basics]=1
[mongo:windowsservercore_mongo-tls-basics]=1
[mongo:windowsservercore_mongo-tls-auth]=1
)