forked from mozilla/mozilla-django-oidc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
37 lines (36 loc) · 1.09 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
# Based in the `docker-test-mozilla-django-oidc` images
# https://github.com/mozilla-parsys/docker-test-mozilla-django-oidc
version: '3'
services:
testprovider:
image: mozillaparsys/oidc_testprovider
ports:
- "8080:8080"
testrp:
image: mozillaparsys/oidc_testrp:py${PYTHON_VERSION:-3}
ports:
- "8081:8081"
volumes:
- ./:/mozilla-django-oidc
environment:
- TEST_OIDC_ALGO=${TEST_OIDC_ALGO:-hs}
- DJANGO_VERSION=${DJANGO_VERSION:-Django>=2.0}
command: >-
bash -c "cd /mozilla-django-oidc/ &&
python setup.py build &&
python setup.py install &&
cd /code &&
pip install $$DJANGO_VERSION &&
./bin/run.sh"
testrunner:
image: mozillaparsys/oidc_testrunner
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"