-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
29 lines (24 loc) · 1.09 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
run:
docker run --rm -it -p 8000:8000 \
-v `pwd`/dev_jupyterhub_config.py:/srv/jupyterhub/jupyterhub_config.py \
-v `pwd`:/data \
-v `pwd`/naas_logo.svg:/srv/jupyterhub/naas_logo.svg \
-v `pwd`/naas_fav.svg:/srv/jupyterhub/naas_fav.svg \
-v `pwd`/naasauthenticator/images:/usr/local/share/jupyterhub/static/images/custom \
-e CREATE_DEFAULT_NAAS_USER=true \
jupyterhub/jupyterhub:1.3 \
bash -c 'pip install -e /data && jupyterhub'
sh:
docker run --rm -it -p 8000:8000 \
-v `pwd`/dev_jupyterhub_config.py:/srv/jupyterhub/jupyterhub_config.py \
-v `pwd`:/data \
-v `pwd`/naas_logo.svg:/srv/jupyterhub/naas_logo.svg \
-v `pwd`/naas_fav.svg:/srv/jupyterhub/naas_fav.svg \
-v `pwd`/naasauthenticator/images:/usr/local/share/jupyterhub/static/images/custom \
-e CREATE_DEFAULT_NAAS_USER=true \
jupyterhub/jupyterhub:1.3 \
bash -c 'pip install -e "/data[dev]" && bash'
test:
pytest --cov=./naasauthenticator --cov-report=xml --verbose --color=yes
get-db:
docker cp `docker ps | grep 'jupyterhub/jupyterhub' | awk '{print $$1}'`:/srv/jupyterhub/jupyterhub.sqlite jupyterhub.sqlite``