-
Notifications
You must be signed in to change notification settings - Fork 1.6k
/
docker-compose.override.unit_tests_cicd.yml
57 lines (57 loc) · 2.06 KB
/
docker-compose.override.unit_tests_cicd.yml
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
---
services:
nginx:
image: busybox:1.37.0-musl
entrypoint: ['echo', 'skipping', 'nginx']
volumes:
- defectdojo_media_unit_tests:/usr/share/nginx/html/media
uwsgi:
build:
target: django-unittests
entrypoint: ['/wait-for-it.sh', '${DD_DATABASE_HOST:-postgres}:${DD_DATABASE_PORT:-5432}', '-t', '30', '--', '/app/docker/entrypoint-unit-tests.sh']
volumes:
- '.:/app:z'
- "defectdojo_media_unit_tests:${DD_MEDIA_ROOT:-/app/media}"
environment:
PYTHONWARNINGS: error # We are strict about Warnings during testing
DD_DEBUG: 'True'
DD_LOG_LEVEL: 'ERROR'
DD_TEST_DATABASE_NAME: ${DD_TEST_DATABASE_NAME:-test_defectdojo}
DD_DATABASE_NAME: ${DD_TEST_DATABASE_NAME:-test_defectdojo}
DD_DATABASE_ENGINE: ${DD_DATABASE_ENGINE:-django.db.backends.postgresql}
DD_DATABASE_HOST: ${DD_DATABASE_HOST:-postgres}
DD_DATABASE_PORT: ${DD_DATABASE_PORT:-5432}
DD_CELERY_BROKER_SCHEME: 'sqla+sqlite'
DD_CELERY_BROKER_USER: ''
DD_CELERY_BROKER_PASSWORD: ''
DD_CELERY_BROKER_HOST: ''
DD_CELERY_BROKER_PORT: "-1"
DD_CELERY_BROKER_PATH: '/dojo.celerydb.sqlite'
DD_CELERY_BROKER_PARAMS: ''
celerybeat:
image: busybox:1.37.0-musl
entrypoint: ['echo', 'skipping', 'celery beat']
celeryworker:
image: busybox:1.37.0-musl
entrypoint: ['echo', 'skipping', 'celery worker']
initializer:
image: busybox:1.37.0-musl
entrypoint: ['echo', 'skipping', 'initializer']
postgres:
ports:
- target: ${DD_DATABASE_PORT:-5432}
published: ${DD_DATABASE_PORT:-5432}
protocol: tcp
mode: host
environment:
POSTGRES_DB: ${DD_TEST_DATABASE_NAME:-test_defectdojo}
volumes:
- defectdojo_postgres_unit_tests:/var/lib/postgresql/data
redis:
image: busybox:1.37.0-musl
entrypoint: ['echo', 'skipping', 'redis']
"webhook.endpoint":
image: mccutchen/go-httpbin:v2.15.0@sha256:24528cf5229d0b70065ac27e6c9e4d96f5452a84a3ce4433e56573c18d96827a
volumes:
defectdojo_postgres_unit_tests: {}
defectdojo_media_unit_tests: {}