-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
70 lines (66 loc) · 1.99 KB
/
docker-compose.yaml
File metadata and controls
70 lines (66 loc) · 1.99 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
version: '3.7'
services:
build:
build:
context: .
target: prepare-build
volumes:
- './dist:/app/dist'
- './build:/app/build'
- './js/dist:/app/js-copy-dist'
- './js/build:/app/js-copy-build'
image: algorithmx-build
command: bash -c "
python -m mypy .
&& python -m pytest tests -vv
&& rm -rf build/* dist/*
&& python setup.py build sdist bdist_wheel
&& cp -r /app/js/dist/* /app/js-copy-dist/
&& cp -r /app/js/build/* /app/js-copy-build/"
build-docs:
build:
context: .
target: prepare-build
image: algorithmx-build-docs
volumes:
- './docs/build:/app/docs/build'
- './docs/cache:/app/docs/cache'
command: ./docs/build.sh
http-server:
build:
context: .
target: http-server
image: algorithmx-http-server
ports:
- '5050:5050'
- '5051:5051'
volumes:
- './algorithmx:/app/algorithmx'
- './examples:/app/examples'
command: python examples/basic_http_server.py
jupyter-notebook:
build:
context: .
target: jupyter-notebook
image: algorithmx-jupyter-notebook
ports:
- '8888:8888'
volumes:
- './examples:/app/examples'
tty: true
command: bash -c "
python -m jupyter nbextension list
&& python -m jupyter notebook --allow-root --ip=0.0.0.0 --port=8888"
jupyter-lab:
build:
context: .
target: jupyter-lab
image: algorithmx-jupyter-lab
ports:
- '8888:8888'
volumes:
- './examples:/app/examples'
tty: true
command: bash -c "
python -m jupyter labextension list
&& python -m jupyter lab --allow-root --ip=0.0.0.0 --port=8888"