config.sh 3.7 KB

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