-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
52 lines (46 loc) · 1.25 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
version: '3.8'
services:
app:
image: python:3.9-slim
container_name: python_sdk_app_container
working_dir: /app
volumes:
- .:/app
- python_packages:/usr/local/lib/python3.9/site-packages
depends_on:
- install_deps
command: python ./run_checks.py
install_deps:
image: python:3.9-slim
container_name: python_sdk_install_deps_container
working_dir: /app
volumes:
- .:/app
- .cache/pip:/root/.cache/pip
- python_packages:/usr/local/lib/python3.9/site-packages
command: pip install --no-cache-dir -r requirements.txt
install_test_deps:
image: python:3.9-slim
container_name: python_sdk_install_test_deps_container
working_dir: /app
volumes:
- .:/app
- .cache/pip:/root/.cache/pip
- python_packages:/usr/local/lib/python3.9/site-packages
depends_on:
- install_deps
command: pip install --no-cache-dir -r test-requirements.txt
test:
image: python:3.9-slim
container_name: python_sdk_test_container
working_dir: /app
volumes:
- .:/app
- python_packages:/usr/local/lib/python3.9/site-packages
depends_on:
- install_test_deps
command: python -m pytest
env_file:
- .env
volumes:
python_packages: