-
Notifications
You must be signed in to change notification settings - Fork 144
Install REP with Docker [Mac OS X, Windows]
Andrey Ustyuzhanin edited this page Aug 10, 2016
·
1 revision
To install REP it may take some time and courage since it depends on plenty of stuff. To get to your data analytics experience quickly we've loaded docker images with all the necessary packages, so you just need to pull and run them.
Install docker toolbox
- Run Kitematic, which is part of docker toolbox
- Press ‘+New’ button
- find ‘yandex/rep’ image in the list
- press ‘Create’ button
- as soon as it downloads and starts you can open Jupyter interface by clicking on ‘Settings -> Ports’ and going to IP:Port mentioned there.
if you would like as soon as you have installed docker toolbox, you can start it from console:
docker-machine start default # starting VM
eval $(docker-machine env default)
docker pull yandex/rep:latest
git pull https://github.com/yandex/rep.git
cd rep
make run # for REP interactive start or
make run-daemon # to run REP in the background
There are set of things you can tweak to improve your experience:
- mount your local folder to
/notebooks
within docker - mount configuration folder to
/etc_external
folder within docker (it could hold SSL certificate and modules you’d like to be installed by Jupyter start)- if there is
modules
folder below, before startingjupyter
the starting script looks for modules directories there to be installed bypip install <>
, and if there isrequirements.txt
, it will be installed by pip as well.
- if there is
parameters you can change through environment variables
- GENERATE_SSL_HOSTNAME — generate SSL certificate and run with SSL support
- SSL_CERTFILE — SSL certificatie, relative to docker container (say
/etc_external/mycert.pem
) - SSL_KEYFILE — SSL certificate key
- PASSWORD — string to be used as password to access Jupyter
- SECRET — string to be used as secret key to check Jupyter notebooks
- SECRET_FILE — secret file name, relative to docker container
- JUPYTER_PORT — port to be used by Jupyter
you can change those settings either in Kitematic container ‘setting’ interface or set those environment variables before running REP from console.
Diagnostics is saved in jupyter.log
in the root folder shown by Jupyter or you can look it by make logs
command