-
Notifications
You must be signed in to change notification settings - Fork 39
/
Makefile
31 lines (23 loc) · 1.06 KB
/
Makefile
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
SRC=src
RUN=docker run -it --rm -v $(PWD):/code -v $(PWD)/src:/src
jupyter-m:
# @ $(RUN) -p 8895:8895 mistat.m.jupyter jupyter notebook --allow-root --port=8895 --ip 0.0.0.0 --no-browser
@ $(RUN) -p 8895:8895 mistat.m.jupyter jupyter-lab --allow-root --port=8895 --ip 0.0.0.0 --no-browser
bash-m:
@ $(RUN) mistat.m.python bash
jupyter-i:
# @ $(RUN) -p 8895:8895 mistat.m.jupyter jupyter notebook --allow-root --port=8895 --ip 0.0.0.0 --no-browser
@ $(RUN) -p 8895:8895 mistat.i.jupyter jupyter-lab --allow-root --port=8895 --ip 0.0.0.0 --no-browser
bash-i:
@ $(RUN) mistat.i.python bash
# tests:
# @ $(RUN) super.python pytest -p no:cacheprovider
# watch-tests:
# rm -f .testmondata
# @ $(RUN) supersar.python ptw --runner "pytest -o cache_dir=/tmp --testmon --quiet -rP"
# Docker container
images:
docker build -t mistat.m.python -f docker/Dockerfile.m.python .
docker build -t mistat.m.jupyter -f docker/Dockerfile.m.jupyter .
docker build -t mistat.i.python -f docker/Dockerfile.i.python .
docker build -t mistat.i.jupyter -f docker/Dockerfile.i.jupyter .