config.sh 2.5 KB

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