-
Notifications
You must be signed in to change notification settings - Fork 168
/
docker-compose.yml
42 lines (41 loc) · 1.2 KB
/
docker-compose.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
# Based in the `docker-test-mozilla-django-oidc` images
# https://github.com/mozilla/docker-test-mozilla-django-oidc
version: '3'
services:
testprovider:
stdin_open: true
tty: true
image: mozilla/oidc-testprovider:oidc_testprovider-latest
ports:
- "8080:8080"
testrp:
stdin_open: true
tty: true
image: mozilla/oidc-testprovider:oidc_testrp_py${PYTHON_VERSION:-3}-latest
ports:
- "8081:8081"
volumes:
- ./:/mozilla-django-oidc
environment:
- TEST_OIDC_ALGO=${TEST_OIDC_ALGO:-hs}
- DJANGO_VERSION=${DJANGO_VERSION:-Django>=3.2}
command: >-
bash -c "cd /mozilla-django-oidc/ &&
pip install -I . &&
cd /code &&
pip install $$DJANGO_VERSION &&
./bin/run.sh"
testrunner:
stdin_open: true
tty: true
image: mozilla/oidc-testprovider:oidc_testrunner-latest
volumes:
- ./integration_tests:/integration_tests
links:
- testrp
- testprovider
command: >-
bash -c "cd /integration_tests &&
wait-for-it -t 60 -p 8080 -h testprovider &&
wait-for-it -t 60 -p 8081 -h testrp &&
python integration_tests.py"