-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
44 lines (30 loc) · 1.19 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
32
33
34
35
36
37
38
39
UID=$(shell id -u)
IMAGE_VERSION=65761486d5d3
PACKAGES=ipyleaflet requests pandas matplotlib seaborn overpy geopy
all: help
help:
@grep "##" Makefile | grep -v "@grep"
.conda:
docker exec jupyter conda install -y -c conda-forge ${PACKAGES}
.npm: ## Install .virtualenv
docker exec jupyter jupyter labextension install jupyter-leaflet @jupyter-widgets/jupyterlab-manager
run: ## Run docker container
docker run -d --name jupyter --rm -p 8888:8888 -e JUPYTER_ENABLE_LAB=yes -v "${CURDIR}":/home/jovyan jupyter/datascience-notebook:${IMAGE_VERSION}
jupyter: stop run .conda .npm ## Launch jupyter instance
@echo "#########################################################"
@echo "# You can now launch your web navigator to localhost:8888"
@echo "#########################################################"
stop: ## stop jupyter docker container
@docker stop jupyter > /dev/null || true
@echo "Stoping or waiting jupyter container" && sleep 5
@docker rm jupyter > /dev/null || true
clean: ## Clean packages installation
-@$(RM) -r .cache
-@$(RM) -r .conda
-@$(RM) -r .config
-@$(RM) -r .ipy*
-@$(RM) -r .local
-@$(RM) -r .npm
-@$(RM) -r .yarn
-@$(RM) -r .yarnrc
-@$(RM) -r .requirements