config.sh 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289
  1. #!/bin/bash
  2. set -e
  3. globalTests+=(
  4. utc
  5. cve-2014--shellshock
  6. no-hard-coded-passwords
  7. override-cmd
  8. )
  9. # for "explicit" images, only run tests that are explicitly specified for that image/variant
  10. explicitTests+=(
  11. [:onbuild]=1
  12. [:nanoserver]=1
  13. [:windowsservercore]=1
  14. )
  15. imageTests[:onbuild]+='
  16. override-cmd
  17. '
  18. testAlias+=(
  19. [amazoncorretto]='openjdk'
  20. [adoptopenjdk]='openjdk'
  21. [sapmachine]='openjdk'
  22. [iojs]='node'
  23. [jruby]='ruby'
  24. [pypy]='python'
  25. [ubuntu]='debian'
  26. [ubuntu-debootstrap]='debian'
  27. [mariadb]='mysql'
  28. [percona]='mysql'
  29. [percona:psmdb]='mongo'
  30. [hola-mundo]='hello-world'
  31. [hello-seattle]='hello-world'
  32. )
  33. imageTests+=(
  34. [aerospike]='
  35. '
  36. [busybox]='
  37. '
  38. [cassandra]='
  39. cassandra-basics
  40. '
  41. [celery]='
  42. '
  43. [clojure]='
  44. '
  45. [crate]='
  46. '
  47. [composer]='
  48. composer
  49. '
  50. [convertigo]='
  51. convertigo-hello-world
  52. '
  53. [debian]='
  54. debian-apt-get
  55. '
  56. [docker:dind]='
  57. docker-dind
  58. docker-registry-push-pull
  59. '
  60. [django]='
  61. '
  62. [elasticsearch]='
  63. elasticsearch-basics
  64. '
  65. [elixir]='
  66. elixir-hello-world
  67. '
  68. [erlang]='
  69. erlang-hello-world
  70. '
  71. [fsharp]='
  72. fsharp-hello-world
  73. '
  74. [gcc]='
  75. gcc-c-hello-world
  76. gcc-cpp-hello-world
  77. golang-hello-world
  78. '
  79. [ghost]='
  80. ghost-basics
  81. '
  82. [golang]='
  83. golang-hello-world
  84. '
  85. [haproxy]='
  86. haproxy-basics
  87. '
  88. [haskell]='
  89. haskell-cabal
  90. haskell-stack
  91. haskell-ghci
  92. haskell-runhaskell
  93. '
  94. [haxe]='
  95. haxe-hello-world
  96. haxe-haxelib-install
  97. '
  98. [hylang]='
  99. hylang-sh
  100. hylang-hello-world
  101. '
  102. [jetty]='
  103. jetty-hello-web
  104. '
  105. [julia]='
  106. julia-hello-world
  107. julia-downloads
  108. '
  109. [logstash]='
  110. logstash-basics
  111. '
  112. [memcached]='
  113. memcached-basics
  114. '
  115. [mongo]='
  116. mongo-basics
  117. mongo-auth-basics
  118. '
  119. [mono]='
  120. '
  121. [mysql]='
  122. mysql-basics
  123. mysql-initdb
  124. mysql-log-bin
  125. '
  126. [nextcloud]='
  127. nextcloud-cli-mysql
  128. nextcloud-cli-postgres
  129. nextcloud-cli-sqlite
  130. '
  131. [nextcloud:apache]='
  132. nextcloud-apache-run
  133. '
  134. [nextcloud:fpm]='
  135. nextcloud-fpm-run
  136. '
  137. [node]='
  138. node-hello-world
  139. '
  140. [nuxeo]='
  141. nuxeo-conf
  142. nuxeo-basics
  143. '
  144. [openjdk]='
  145. java-hello-world
  146. java-uimanager-font
  147. java-ca-certificates
  148. '
  149. [open-liberty]='
  150. open-liberty-hello-world
  151. '
  152. [percona]='
  153. percona-tokudb
  154. percona-rocksdb
  155. '
  156. [perl]='
  157. perl-hello-world
  158. '
  159. [php]='
  160. php-ext-install
  161. php-hello-world
  162. php-argon2
  163. '
  164. [php:apache]='
  165. php-apache-hello-web
  166. '
  167. [php:fpm]='
  168. php-fpm-hello-web
  169. '
  170. [plone]='
  171. plone-basics
  172. plone-addons
  173. plone-zeoclient
  174. '
  175. [postgres]='
  176. postgres-basics
  177. postgres-initdb
  178. '
  179. [python]='
  180. python-hy
  181. python-imports
  182. python-pip-requests-ssl
  183. python-sqlite3
  184. python-stack-size
  185. '
  186. [rabbitmq]='
  187. rabbitmq-basics
  188. rabbitmq-tls
  189. '
  190. [r-base]='
  191. '
  192. [rails]='
  193. '
  194. [rapidoid]='
  195. rapidoid-hello-world
  196. rapidoid-load-balancer
  197. '
  198. [redis]='
  199. redis-basics
  200. redis-basics-config
  201. redis-basics-persistent
  202. '
  203. [redmine]='
  204. redmine-basics
  205. '
  206. [registry]='
  207. docker-registry-push-pull
  208. '
  209. [rethinkdb]='
  210. '
  211. [ruby]='
  212. ruby-hello-world
  213. ruby-standard-libs
  214. ruby-gems
  215. ruby-bundler
  216. ruby-nonroot
  217. '
  218. [rust]='
  219. rust-hello-world
  220. '
  221. [silverpeas]='
  222. silverpeas-basics
  223. '
  224. [swipl]='
  225. swipl-modules
  226. '
  227. [swift]='
  228. swift-hello-world
  229. '
  230. [tomcat]='
  231. tomcat-hello-world
  232. '
  233. [wordpress:apache]='
  234. wordpress-apache-run
  235. '
  236. [wordpress:fpm]='
  237. wordpress-fpm-run
  238. '
  239. [znc]='
  240. znc-basics
  241. '
  242. [zookeeper]='
  243. zookeeper-basics
  244. '
  245. # example onbuild
  246. # [python:onbuild]='
  247. # py-onbuild
  248. # '
  249. )
  250. globalExcludeTests+=(
  251. # single-binary images
  252. [hello-world_utc]=1
  253. [nats_utc]=1
  254. [nats-streaming_utc]=1
  255. [swarm_utc]=1
  256. [traefik_utc]=1
  257. [hello-world_no-hard-coded-passwords]=1
  258. [nats_no-hard-coded-passwords]=1
  259. [nats-streaming_no-hard-coded-passwords]=1
  260. [swarm_no-hard-coded-passwords]=1
  261. [traefik_no-hard-coded-passwords]=1
  262. # clearlinux has no /etc/password
  263. # https://github.com/docker-library/official-images/pull/1721#issuecomment-234128477
  264. [clearlinux_no-hard-coded-passwords]=1
  265. # alpine/slim openjdk images are headless and so can't do font stuff
  266. [openjdk:alpine_java-uimanager-font]=1
  267. [openjdk:slim_java-uimanager-font]=1
  268. # and adoptopenjdk has opted not to
  269. [adoptopenjdk_java-uimanager-font]=1
  270. # no "native" dependencies
  271. [ruby:alpine_ruby-bundler]=1
  272. [ruby:alpine_ruby-gems]=1
  273. [ruby:slim_ruby-bundler]=1
  274. [ruby:slim_ruby-gems]=1
  275. [percona:psmdb_percona-tokudb]=1
  276. [percona:psmdb_percona-rocksdb]=1
  277. )