forked from CERT-Polska/Artemis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.test.yaml
158 lines (131 loc) · 4.37 KB
/
docker-compose.test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
version: "3.8"
services:
test-e2e:
build:
context: .
dockerfile: docker/Dockerfile
environment:
DB_CONN_STR: ""
REDIS_CONN_STR: redis://test-redis:6379/1
command: python -m unittest discover test.e2e
volumes:
# We don't copy the test code into the image so that we don't pollute production image
# with test data.
- ./test/:/opt/test/
- ./docker/karton.ini:/etc/karton/karton.ini
test:
build:
context: .
dockerfile: docker/Dockerfile
command: bash -c "python -m unittest discover test.modules && python -m unittest discover test.reporting && python -m unittest discover test.unit"
environment:
DB_CONN_STR: ""
TEST_REDIS_HOST: test-redis
TEST_REDIS_PORT: 6379
REDIS_CONN_STR: redis://test-redis:6379/1
# Use only one provider to speed up the tests
GAU_ADDITIONAL_OPTIONS: "--providers otx"
POSTMAN_MAIL_FROM: artemis@localhost.com
POSTMAN_MAIL_TO: artemis@localhost.com
SECONDS_PER_REQUEST: 0
SCANNING_PACKETS_PER_SECOND: 5
CUSTOM_PORT_SCANNER_PORTS: 21,80,6379
NUCLEI_CHECK_TEMPLATE_LIST: False
volumes:
# We don't copy the test code into the image so that we don't pollute production image
# with test data.
- ./test/:/opt/test/
- ./docker/karton.ini:/etc/karton/karton.ini
test-redis:
image: redis:7.0.5
test-service-with-bruteable-files:
image: php:7.4-apache
volumes:
- ./test/data/bruteable_files/:/var/www/html/
test-robots-service:
image: nginx:latest
volumes:
- ./test/data/robots/default.conf:/etc/nginx/conf.d/default.conf
- ./test/data/robots/:/usr/share/nginx/html/
test-ftp-server-with-easy-password:
image: stilliard/pure-ftpd:latest
environment:
- FTP_USER_NAME=admin
- FTP_USER_PASS=12345
- FTP_USER_HOME=/dev/shm
test-old-joomla:
image: joomla:4.0.5-php8.0-apache # this is an old image on purpose
environment:
JOOMLA_DB_HOST: test-old-joomla-mysql
JOOMLA_DB_PASSWORD: example
test-old-joomla-mysql:
image: mysql:5.6
environment:
MYSQL_ROOT_PASSWORD: example
test-smtp-server:
image: bytemark/smtp
test-service-with-exposed-git:
image: nginx:latest
volumes:
- ./test/data/git/git/:/usr/share/nginx/html/.git/
test-old-wordpress:
image: wordpress:5.9.3-apache
environment:
WORDPRESS_DB_HOST: test-old-wordpress-mysql
WORDPRESS_DB_USER: root
WORDPRESS_DB_PASSWORD: example
WORDPRESS_DB_NAME: example
test-old-wordpress-mysql:
image: mysql:5.6
environment:
MYSQL_ROOT_PASSWORD: example
test-service-with-directory-index:
image: nginx:latest
volumes:
- ./test/data/directory_index/default.conf:/etc/nginx/conf.d/default.conf
- ./test/data/directory_index/:/usr/share/nginx/html/
test-wordpress-easy-password:
image: wordpress:6.1.1-apache
environment:
WORDPRESS_DB_HOST: test-wordpress-easy-password-mysql
WORDPRESS_DB_USER: root
WORDPRESS_DB_PASSWORD: example
WORDPRESS_DB_NAME: example
test-wordpress-easy-password-mysql:
image: mysql:5.6
environment:
MYSQL_ROOT_PASSWORD: example
test-mysql-with-easy-password:
image: mysql:5.6
environment:
MYSQL_ROOT_PASSWORD: root
test-postgresql-with-easy-password:
image: postgres
environment:
POSTGRES_USER: example
POSTGRES_PASSWORD: example
test-phpmyadmin-easy-password-subdirectory-nginx:
image: nginx
volumes:
- ./test/data/phpmyadmin_subdirectory_proxy/default.conf:/etc/nginx/conf.d/default.conf
test-phpmyadmin-easy-password-subdirectory:
image: phpmyadmin
environment:
- PMA_ABSOLUTE_URI=http://test-phpmyadmin-easy-password-subdirectory-nginx/phpmyadmin/
- PMA_HOST=test-phpmyadmin-easy-password-mysql
test-phpmyadmin-easy-password:
image: phpmyadmin
environment:
- PMA_HOST=test-phpmyadmin-easy-password-mysql
test-phpmyadmin-easy-password-mysql:
image: mariadb:10.3
environment:
MYSQL_ROOT_PASSWORD: root
test-service-with-bruteable-files-sql-dumps:
image: php:7.4-apache
volumes:
- ./test/reporting/data/bruteable_files/sql_dumps/:/var/www/html/
test-service-with-bruteable-files-htpasswd:
image: php:7.4-apache
volumes:
- ./test/reporting/data/bruteable_files/htpasswd/:/var/www/html/