config.sh 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  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. )
  25. imageTests+=(
  26. [aerospike]='
  27. '
  28. [busybox]='
  29. '
  30. [cassandra]='
  31. cassandra-basics
  32. '
  33. [celery]='
  34. '
  35. [clojure]='
  36. '
  37. [crate]='
  38. '
  39. [debian]='
  40. debian-apt-get
  41. '
  42. [docker:dind]='
  43. docker-dind
  44. '
  45. [django]='
  46. '
  47. [elasticsearch]='
  48. elasticsearch-basics
  49. '
  50. [elixir]='
  51. elixir-hello-world
  52. '
  53. [erlang]='
  54. erlang-hello-world
  55. '
  56. [gcc]='
  57. gcc-c-hello-world
  58. gcc-cpp-hello-world
  59. '
  60. [golang]='
  61. golang-hello-world
  62. '
  63. [haproxy]='
  64. haproxy-basics
  65. '
  66. [haskell]='
  67. haskell-cabal
  68. haskell-ghci
  69. haskell-runhaskell
  70. '
  71. [hylang]='
  72. hylang-sh
  73. hylang-hello-world
  74. '
  75. [java]='
  76. '
  77. [jetty]='
  78. jetty-hello-web
  79. '
  80. [julia]='
  81. julia-hello-world
  82. '
  83. [memcached]='
  84. '
  85. [mongo]='
  86. mongo-basics
  87. '
  88. [mono]='
  89. '
  90. [mysql]='
  91. mysql-basics
  92. mysql-initdb
  93. mysql-log-bin
  94. '
  95. [node]='
  96. node-hello-world
  97. '
  98. [nuxeo]='
  99. nuxeo-conf
  100. nuxeo-basics
  101. '
  102. [percona]='
  103. '
  104. [perl]='
  105. perl-hello-world
  106. '
  107. [php]='
  108. php-ext-install
  109. php-hello-world
  110. '
  111. [php:apache]='
  112. php-apache-hello-web
  113. '
  114. [php:fpm]='
  115. php-fpm-hello-web
  116. '
  117. [postgres]='
  118. postgres-basics
  119. postgres-initdb
  120. '
  121. [python]='
  122. python-hy
  123. python-imports
  124. python-pip-requests-ssl
  125. python-sqlite3
  126. '
  127. [rabbitmq]='
  128. '
  129. [r-base]='
  130. '
  131. [rails]='
  132. '
  133. [redis]='
  134. redis-basics
  135. redis-basics-config
  136. redis-basics-persistent
  137. '
  138. [rethinkdb]='
  139. '
  140. [ruby]='
  141. ruby-hello-world
  142. ruby-standard-libs
  143. ruby-gems
  144. ruby-bundler
  145. ruby-nonroot
  146. '
  147. [tomcat]='
  148. tomcat-hello-world
  149. '
  150. [wordpress]='
  151. '
  152. # example onbuild
  153. # [python:onbuild]='
  154. # py-onbuild
  155. # '
  156. )
  157. globalExcludeTests+=(
  158. # single-binary images
  159. [hello-world_utc]=1
  160. [nats_utc]=1
  161. [swarm_utc]=1
  162. [traefik_utc]=1
  163. [hello-world_no-hard-coded-passwords]=1
  164. [nats_no-hard-coded-passwords]=1
  165. [swarm_no-hard-coded-passwords]=1
  166. [traefik_no-hard-coded-passwords]=1
  167. [hello-world_override-cmd]=1
  168. [nats_override-cmd]=1
  169. [swarm_override-cmd]=1
  170. [traefik_override-cmd]=1
  171. # no "native" dependencies
  172. [ruby:alpine_ruby-bundler]=1
  173. [ruby:alpine_ruby-gems]=1
  174. [ruby:slim_ruby-bundler]=1
  175. [ruby:slim_ruby-gems]=1
  176. )