-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.test.yml
49 lines (44 loc) · 1.26 KB
/
docker-compose.test.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
version: "3"
services:
# Container used for starting a container to run training for original OpenPredict drug-disease model
train:
build:
context: .
dockerfile: src/openpredict_model/Dockerfile
ports:
- 8808:8808
volumes:
- ./:/app
environment:
# Show print() in logs:
PYTHONUNBUFFERED: '1'
LOG_LEVEL: 'INFO'
NO_JAEGER: "true"
entrypoint: sleep infinity
# Container used for testing and running scripts
tests:
build: .
volumes:
- ./:/app
- ~/.nanopub-docker:/root/.nanopub
environment:
PYTHONUNBUFFERED: '1'
LOG_LEVEL: 'INFO'
NO_JAEGER: "true"
entrypoint: pytest --cov=src tests/integration
# entrypoint: pytest tests/integration/test_train_model.py -s
# entrypoint: pytest tests/integration/test_openpredict_api.py::test_post_trapi -s
# entrypoint: pytest tests/package/test_decorator.py -s
# Container to deploy a JupyterLab/VSCode workspace for development
# workspace:
# image: ghcr.io/maastrichtu-ids/jupyterlab
# ports:
# - 8888:8888
# volumes:
# - ./:/home/jovyan/work
# user: root
# environment:
# - GRANT_SUDO=yes
# - LOG_LEVEL=INFO
# ## With password:
# # - JUPYTER_TOKEN=password