forked from RedHatProductSecurity/osidb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.test.yml
executable file
·50 lines (47 loc) · 1.49 KB
/
docker-compose.test.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
version: '3'
services:
testldap:
container_name: testldap
image: docker.io/bitnami/openldap:2.5
ports:
- '1389:1389'
- '1636:1636'
environment:
- LDAP_ROOT=dc=redhat,dc=com
- LDAP_ADMIN_USERNAME=admin
- LDAP_ADMIN_PASSWORD=adminpassword
volumes:
- ${PWD}/etc/openldap:/ldifs:z
depends_on: ["osidb-data"]
# See "NOTE about healthchecks" in docker-compose.yml:
# depends_on:
# osidb-data:
# condition: service_healthy
testrunner:
container_name: testrunner
build:
context: .
dockerfile: test.Dockerfile
args:
RH_CERT_URL: ${RH_CERT_URL}
PYPI_MIRROR: ${PIP_INDEX_URL}
image: testrunner
stdin_open: true
tty: true
depends_on: ["osidb-data"]
# See "NOTE about healthchecks" in docker-compose.yml:
# depends_on:
# osidb-data:
# condition: service_healthy
# #####################
# NOTE: we make no external calls with tests - below env vars in test environment are
# used in capturing new vcr data cassettes
# #####################
environment:
BZIMPORT_BZ_API_KEY: ${BZIMPORT_BZ_API_KEY:?Variable BZIMPORT_BZ_API_KEY must be set.}
JIRA_AUTH_TOKEN: ${JIRA_AUTH_TOKEN:?Variable JIRA_AUTH_TOKEN must be set.}
ET_URL: ${ET_URL}
PRODUCT_DEF_URL: ${PRODUCT_DEF_URL}
DASHBOARD_URL: ${DASHBOARD_URL}
volumes:
- ${PWD}:/opt/app-root/src:z