-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (35 loc) · 879 Bytes
/
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
32
33
34
35
36
37
38
39
40
41
42
.PHONY: docker demo build nbconvert
image:
docker build -t kelbz:latest .
nbconvert:
docker run \
-v $(PWD):/home/kelby \
--rm \
--cap-drop=all \
-it kelbz:latest jupyter nbconvert --to markdown /home/kelby/notebooks/*.ipynb
notebook:
docker run \
-p 8888:8888 \
-v $(PWD)/notebooks:/home/kelby \
--rm \
--cap-drop=all \
-it kelbz:latest jupyter notebook --no-browser --ip=0.0.0.0
demo:
docker run \
-p 1313:1313 \
-v $(PWD):/home/kelby/ \
--rm \
--cap-drop=all \
-it kelbz:latest hugo server -t hugo-notepadium -D -w --bind 0.0.0.0
build:
docker run \
-v $(PWD):/home/kelby/ \
--rm \
--cap-drop=all \
-it kelbz:latest hugo --gc -b https://kel.bz -t hugo-notepadium
clean:
rm -rf notebooks/.ipynb_checkpoints/
rm -rf notebooks/.ipython/
rm -rf notebooks/.jupyter/
rm -rf notebooks/.local/
rm -rf notebooks/kelbz/__pycache__/