config.sh 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  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. '
  90. [hylang]='
  91. hylang-sh
  92. hylang-hello-world
  93. '
  94. [java]='
  95. '
  96. [jetty]='
  97. jetty-hello-web
  98. '
  99. [julia]='
  100. julia-hello-world
  101. '
  102. [logstash]='
  103. logstash-basics
  104. '
  105. [memcached]='
  106. memcached-basics
  107. '
  108. [mongo]='
  109. mongo-basics
  110. '
  111. [mono]='
  112. '
  113. [mysql]='
  114. mysql-basics
  115. mysql-initdb
  116. mysql-log-bin
  117. '
  118. [node]='
  119. node-hello-world
  120. '
  121. [nuxeo]='
  122. nuxeo-conf
  123. nuxeo-basics
  124. '
  125. [percona]='
  126. '
  127. [perl]='
  128. perl-hello-world
  129. '
  130. [php]='
  131. php-ext-install
  132. php-hello-world
  133. '
  134. [php:apache]='
  135. php-apache-hello-web
  136. '
  137. [php:fpm]='
  138. php-fpm-hello-web
  139. '
  140. [plone]='
  141. plone-basics
  142. plone-addons
  143. plone-zeoclient
  144. '
  145. [postgres]='
  146. postgres-basics
  147. postgres-initdb
  148. '
  149. [python]='
  150. python-hy
  151. python-imports
  152. python-pip-requests-ssl
  153. python-sqlite3
  154. '
  155. [rabbitmq]='
  156. '
  157. [r-base]='
  158. '
  159. [rails]='
  160. '
  161. [rapidoid]='
  162. rapidoid-hello-world
  163. rapidoid-load-balancer
  164. '
  165. [redis]='
  166. redis-basics
  167. redis-basics-config
  168. redis-basics-persistent
  169. '
  170. [redmine]='
  171. redmine-basics
  172. '
  173. [registry]='
  174. docker-registry-push-pull
  175. '
  176. [rethinkdb]='
  177. '
  178. [ruby]='
  179. ruby-hello-world
  180. ruby-standard-libs
  181. ruby-gems
  182. ruby-bundler
  183. ruby-nonroot
  184. '
  185. [silverpeas]='
  186. silverpeas-basics
  187. '
  188. [swift]='
  189. swift-hello-world
  190. '
  191. [tomcat]='
  192. tomcat-hello-world
  193. '
  194. [wordpress:apache]='
  195. wordpress-apache-run
  196. '
  197. [wordpress:fpm]='
  198. wordpress-fpm-run
  199. '
  200. # example onbuild
  201. # [python:onbuild]='
  202. # py-onbuild
  203. # '
  204. )
  205. globalExcludeTests+=(
  206. # single-binary images
  207. [hello-world_utc]=1
  208. [nats_utc]=1
  209. [nats-streaming_utc]=1
  210. [swarm_utc]=1
  211. [traefik_utc]=1
  212. [hello-world_no-hard-coded-passwords]=1
  213. [nats_no-hard-coded-passwords]=1
  214. [nats-streaming_no-hard-coded-passwords]=1
  215. [swarm_no-hard-coded-passwords]=1
  216. [traefik_no-hard-coded-passwords]=1
  217. # clearlinux has no /etc/password
  218. # https://github.com/docker-library/official-images/pull/1721#issuecomment-234128477
  219. [clearlinux_no-hard-coded-passwords]=1
  220. # no "native" dependencies
  221. [ruby:alpine_ruby-bundler]=1
  222. [ruby:alpine_ruby-gems]=1
  223. [ruby:slim_ruby-bundler]=1
  224. [ruby:slim_ruby-gems]=1
  225. )