-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
113 lines (106 loc) · 2.39 KB
/
Copy pathdocker-compose.yml
File metadata and controls
113 lines (106 loc) · 2.39 KB
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
version: '3.8'
services:
plot2llm:
build: .
container_name: plot2llm-dev
volumes:
- .:/app
- ./data:/app/data
- ./output:/app/output
environment:
- PYTHONPATH=/app
- MPLBACKEND=Agg
- PLOT2LLM_LOG_LEVEL=INFO
working_dir: /app
command: python -c "import plot2llm; print('Plot2LLM development environment ready!')"
profiles:
- dev
plot2llm-test:
build: .
container_name: plot2llm-test
volumes:
- .:/app
environment:
- PYTHONPATH=/app
- MPLBACKEND=Agg
- PLOT2LLM_LOG_LEVEL=DEBUG
working_dir: /app
command: python -m pytest tests/ -v --cov=plot2llm --cov-report=html
profiles:
- test
plot2llm-jupyter:
build: .
container_name: plot2llm-jupyter
ports:
- "8888:8888"
volumes:
- .:/app
- ./notebooks:/app/notebooks
- ./data:/app/data
- ./output:/app/output
environment:
- PYTHONPATH=/app
- MPLBACKEND=Agg
- JUPYTER_ENABLE_LAB=yes
working_dir: /app
command: jupyter lab --ip=0.0.0.0 --port=8888 --no-browser --allow-root --NotebookApp.token='' --NotebookApp.password=''
profiles:
- jupyter
plot2llm-docs:
build: .
container_name: plot2llm-docs
ports:
- "8000:8000"
volumes:
- .:/app
- ./docs:/app/docs
environment:
- PYTHONPATH=/app
working_dir: /app/docs
command: |
sh -c "
pip install sphinx sphinx-rtd-theme myst-parser &&
make html &&
python -m http.server 8000 --directory _build/html
"
profiles:
- docs
plot2llm-build:
build: .
container_name: plot2llm-build
volumes:
- .:/app
- ./dist:/app/dist
environment:
- PYTHONPATH=/app
working_dir: /app
command: |
sh -c "
pip install build twine &&
python -m build &&
twine check dist/*
"
profiles:
- build
plot2llm-lint:
build: .
container_name: plot2llm-lint
volumes:
- .:/app
environment:
- PYTHONPATH=/app
working_dir: /app
command: |
sh -c "
pip install black isort flake8 mypy bandit &&
black --check --diff . &&
isort --check-only --diff . &&
flake8 plot2llm/ tests/ &&
mypy plot2llm/ &&
bandit -r plot2llm/
"
profiles:
- lint
networks:
default:
name: plot2llm-network