Skip to content

Files

Latest commit

 

History

History

.docker

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Building the image

docker build . -t openvino_notebooks

Using the image

The command below starts the jupyterlab with default parameters on port 8888

docker run -d -p 8888:8888  openvino_notebooks

You can also add extra parameters and mount storage as needed. For example:

docker run -it -v $(pwd):/workspace -u $(id -u) -p 8080:8080 -e NOTEBOOK_PORT=8080 -e NOTEBOOK_ROOT_DIR="/workspace" -e NOTEBOOK_ARGS="--NotebookApp.token=''" openvino_notebooks

Testing the image

docker run -it  --entrypoint /tmp/scripts/test -v ${PWD}:/opt/app-root/openvino_notebooks openvino_notebooks

Updating Pipfile.lock

 docker run -v $(pwd)/.docker/Pipfile:/opt/app-root/bin/Pipfile --entrypoint bash openvino_notebooks:latest -c 'cd ../bin ; pip install -qq pipenv ; pipenv install  >/dev/null 2>&1 ; cat Pipfile.lock' > .docker/Pipfile.lock