Files for creating a Jupyter notebook docker container.

Charles Reid f73f2f7719 adding --link to run_jupyter 6 months ago
Dockerfile 94ca8e91b8 add seaborn to the list of installed python packages 6 months ago
README.md 5351fa7c9f how to run the run script 6 months ago
build_jupyter.sh 9525f0e6f8 init checkin - dockerfile and build/run scripts 6 months ago
run_jupyter.sh f73f2f7719 adding --link to run_jupyter 6 months ago
start_jupyter.sh b3fdca43c8 Fixed the Dockerfile and init script 6 months ago

README.md

Jupyter Notebook Docker Container

This repo contains scripts for building Docker containers that run Jupyter notebooks.

Jupyter + Mongo

Dockerfile

The Dockerfile uses aptitude to install the following components:

  • Python
  • Pip
  • Numpy
  • Scipy
  • iPython
  • Pandas
  • Sympy

Note that we need to install the python-scipy version of Scipy because running pip install scipy causes this machine to run out of memory.

The script then uses pip to install the following:

  • Pymongo

Building

To build the container, use the build_jupyter.sh script. This script does not require any configuration.

$ ./build_jupyter.sh

Running

To run the container, use the run_jupyter.sh script. This script links the Jupyter container to the Mongo container, and must be configured to point to the correct name of the MongoDB container.

The container exposes port 8888 to the outside world. Because it is linked to the MongoDB container, port 27017 (MongoDB) is also accessible from the Jupyter notebook.

$ ./run_jupyter.sh