@@ -3,18 +3,18 @@ version: "2.3"
3
3
4
4
x-base : &base
5
5
build :
6
- context : .
6
+ context : ${DJANGO_PATH}
7
+ dockerfile : ${PWD}/Dockerfile
7
8
args :
8
9
- PYTHON_VERSION=${PYTHON_VERSION}
9
10
volumes :
10
11
- ${DJANGO_PATH}:/tests/django/
11
12
- ./settings:/tests/django/tests/settings
12
13
- ./extra-requirements:/tests/django/tests/requirements/extra/
13
- - ./entrypoint.sh:/entrypoint.sh
14
- - ${PIP_CACHE_VOLUME}:/root/.cache/pip/
14
+ - ./oracle_entrypoint.sh:/oracle_entrypoint.sh
15
15
# Using yaml merging here overwrites the arrays. Simpler to just mount this in every service.
16
16
- ./oracle:/oracle
17
- entrypoint : /entrypoint.sh python tests/runtests.py
17
+ entrypoint : python django/ tests/runtests.py
18
18
19
19
services :
20
20
sqlite :
@@ -34,9 +34,14 @@ services:
34
34
35
35
postgres :
36
36
<< : *base
37
+ build :
38
+ context : ${DJANGO_PATH}
39
+ dockerfile : ${PWD}/Dockerfile
40
+ args :
41
+ - PYTHON_VERSION=${PYTHON_VERSION}
42
+ - EXTRA_REQUIREMENTS=postgres.txt
37
43
environment :
38
44
- DJANGO_SETTINGS_MODULE=settings.test_postgres
39
- - EXTRA_REQUIREMENTS=postgres.txt
40
45
depends_on :
41
46
postgres-db :
42
47
condition : service_healthy
@@ -56,6 +61,12 @@ services:
56
61
57
62
postgres-gis :
58
63
<< : *base
64
+ build :
65
+ context : ${DJANGO_PATH}
66
+ dockerfile : ${PWD}/Dockerfile
67
+ args :
68
+ - PYTHON_VERSION=${PYTHON_VERSION}
69
+ - EXTRA_REQUIREMENTS=postgres.txt
59
70
environment :
60
71
- DJANGO_SETTINGS_MODULE=settings.test_postgres_gis
61
72
- EXTRA_REQUIREMENTS=postgres.txt
@@ -75,9 +86,14 @@ services:
75
86
76
87
mysql :
77
88
<< : *base
89
+ build :
90
+ context : ${DJANGO_PATH}
91
+ dockerfile : ${PWD}/Dockerfile
92
+ args :
93
+ - PYTHON_VERSION=${PYTHON_VERSION}
94
+ - EXTRA_REQUIREMENTS=mysql.txt
78
95
environment :
79
96
- DJANGO_SETTINGS_MODULE=settings.test_mysql
80
- - EXTRA_REQUIREMENTS=mysql.txt
81
97
depends_on :
82
98
mysql-db :
83
99
condition : service_healthy
@@ -98,9 +114,14 @@ services:
98
114
99
115
mysql-gis :
100
116
<< : *base
117
+ build :
118
+ context : ${DJANGO_PATH}
119
+ dockerfile : ${PWD}/Dockerfile
120
+ args :
121
+ - PYTHON_VERSION=${PYTHON_VERSION}
122
+ - EXTRA_REQUIREMENTS=mysql.txt
101
123
environment :
102
124
- DJANGO_SETTINGS_MODULE=settings.test_mysql_gis
103
- - EXTRA_REQUIREMENTS=mysql.txt
104
125
depends_on :
105
126
mysql-gis-db :
106
127
condition : service_healthy
@@ -111,9 +132,14 @@ services:
111
132
112
133
mariadb :
113
134
<< : *base
135
+ build :
136
+ context : ${DJANGO_PATH}
137
+ dockerfile : ${PWD}/Dockerfile
138
+ args :
139
+ - PYTHON_VERSION=${PYTHON_VERSION}
140
+ - EXTRA_REQUIREMENTS=mysql.txt
114
141
environment :
115
142
- DJANGO_SETTINGS_MODULE=settings.test_mariadb
116
- - EXTRA_REQUIREMENTS=mysql.txt
117
143
depends_on :
118
144
mariadb-db :
119
145
condition : service_healthy
@@ -133,10 +159,15 @@ services:
133
159
134
160
oracle :
135
161
<< : *base
162
+ build :
163
+ context : ${DJANGO_PATH}
164
+ dockerfile : ${PWD}/Dockerfile
165
+ args :
166
+ - PYTHON_VERSION=${PYTHON_VERSION}
167
+ - EXTRA_REQUIREMENTS=oracle.txt
136
168
environment :
137
169
- DJANGO_SETTINGS_MODULE=settings.test_oracle
138
- - EXTRA_REQUIREMENTS=oracle.txt
139
- - IS_ORACLE=1
170
+ entrypoint : /oracle_entrypoint.sh python tests/runtests.py
140
171
depends_on :
141
172
oracle-db :
142
173
condition : service_healthy
@@ -170,22 +201,20 @@ services:
170
201
interval : 30s
171
202
retries : 10
172
203
173
- docs :
174
- << : *base
175
- environment :
176
- - EXTRA_REQUIREMENTS=extra/docs.txt
177
- entrypoint : /entrypoint.sh
178
- command : bash -c "cd docs && make spelling"
179
- user : root
180
-
181
- flake8 :
182
- << : *base
183
- environment :
184
- - EXTRA_REQUIREMENTS=extra/linting.txt
185
- entrypoint : /entrypoint.sh flake8
204
+ # docs:
205
+ # <<: *base
206
+ # environment:
207
+ # - EXTRA_REQUIREMENTS=extra/docs.txt
208
+ # command: bash -c "cd docs && make spelling"
209
+ # user: root
210
+ #
211
+ # flake8:
212
+ # <<: *base
213
+ # environment:
214
+ # - EXTRA_REQUIREMENTS=extra/linting.txt
215
+ # entrypoint: /entrypoint.sh flake8
186
216
187
217
volumes :
188
- pip-cache :
189
218
oracle :
190
219
mysql :
191
220
mysql-gis :
0 commit comments