config.sh 3.4 KB

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