-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathdocker-compose.yml
72 lines (70 loc) · 1.59 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# Scripts for running the tests inside docker
# NOTE: pypy not added here. Needs to be run in tox.
# NOTE: The tests are run with all dependencies installed
version: "3.4"
services:
redis:
image: redis:3.2
py27:
image: flask-resize-test:py27
build:
context: .
dockerfile: ./test.Dockerfile
args:
PYTHON_VERSION: "2.7"
command: test
environment:
REDIS_HOST: redis
volumes:
- ./tests:/app/tests
- ./flask_resize:/app/flask_resize
py34:
image: flask-resize-test:py34
build:
context: .
dockerfile: ./test.Dockerfile
args:
PYTHON_VERSION: "3.4"
command: test
environment:
REDIS_HOST: redis
volumes:
- ./tests:/app/tests
- ./flask_resize:/app/flask_resize
py35:
image: flask-resize-test:py35
build:
context: .
dockerfile: ./test.Dockerfile
args:
PYTHON_VERSION: "3.5"
command: test
environment:
REDIS_HOST: redis
volumes:
- ./tests:/app/tests
- ./flask_resize:/app/flask_resize
py36:
image: flask-resize-test:py36
build:
context: .
dockerfile: ./test.Dockerfile
args:
PYTHON_VERSION: "3.6"
command: test
environment:
REDIS_HOST: redis
volumes:
- ./tests:/app/tests
- ./flask_resize:/app/flask_resize
lint:
image: flask-resize-test:py36
command: lint
build:
context: .
dockerfile: ./test.Dockerfile
args:
PYTHON_VERSION: "3.6"
volumes:
- ./tests:/app/tests
- ./flask_resize:/app/flask_resize