-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (27 loc) · 764 Bytes
/
Makefile
File metadata and controls
30 lines (27 loc) · 764 Bytes
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
build:
docker build -f Dockerfile -t mldev .
code:
docker run \
--network=host \
-v $(WORKSPACE):/home/root/workspace \
-ti mldev \
/bin/zsh -c \
"source activate ml \
&& code-server /home/root/workspace/ --verbose --port $(CPORT) --host 0.0.0.0 --auth none"
jupyter:
docker run \
--network=host \
-v $(WORKSPACE):/home/root/workspace \
-ti mldev \
/bin/zsh -c \
"source activate ml \
&& cd /home/root/workspace/ \
&& SHELL=/bin/zsh jupyter-lab --ip=0.0.0.0 --no-browser --port $(JPORT) --allow-root"
code2:
docker run \
--network=host \
-v $(WORKSPACE):/home/root/workspace \
-t mldev \
/bin/zsh -c \
"source activate ml \
&& TERM=xterm code-server /home/root/workspace/ --log trace --verbose --port $(CPORT) --host 0.0.0.0 --auth none"