-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathdocker-compose.yml
47 lines (47 loc) · 1.48 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
version: '3.4'
services:
steinbock:
image: ghcr.io/bodenmillergroup/steinbock:latest
build:
context: .
dockerfile: Dockerfile
target: steinbock
args:
- TENSORFLOW_TARGET=tensorflow
- STEINBOCK_TARGET=steinbock
volumes:
- ./data:/data:rw
- /tmp/.X11-unix:/tmp/.X11-unix:rw
- ~/.Xauthority:/home/steinbock/.Xauthority:ro
environment:
- DISPLAY
steinbock-debug:
image: ghcr.io/bodenmillergroup/steinbock:latest
volumes:
- ./data:/data:rw
- /tmp/.X11-unix:/tmp/.X11-unix:rw
- ~/.Xauthority:/home/steinbock/.Xauthority:ro
environment:
- DISPLAY
entrypoint: /bin/bash
command: ['-c', 'python -m pip install debugpy -t /tmp && python /tmp/debugpy --wait-for-client --listen 0.0.0.0:5678 -m steinbock']
ports:
- '5678:5678'
pytest:
image: ghcr.io/bodenmillergroup/steinbock:latest
volumes:
- .:/app/steinbock
entrypoint: /bin/bash
command: ['-c', 'python -m pytest tests --cov=steinbock --cov-report xml:coverage.xml']
working_dir: /app/steinbock
user: root
pytest-debug:
image: ghcr.io/bodenmillergroup/steinbock:latest
volumes:
- .:/app/steinbock
entrypoint: /bin/bash
command: ['-c', 'python -m pip install debugpy -t /tmp && python /tmp/debugpy --wait-for-client --listen 0.0.0.0:5678 -m pytest tests --cov=steinbock --cov-report xml:coverage.xml']
ports:
- '5678:5678'
working_dir: /app/steinbock
user: root