Docker image for running Jupyter Notebooks for Scala
Features:
- Completely dockerized environment
- Extends Jupyter docker image jupyter/minimal-notebook:1145fb1198b2
- Adds Oracle JDK version 8
- Adds Almond kernels for Scala versions 2.11 and 2.12
For details regarding Jupyter docker image, visit jupyter/minimal-notebook docker repo. For details regarding Almond, visit the Github project page of Almond.
To pull the latest version of the image:
docker pull anskarl/jupyter-scala:latest
If you like to pull a specific version, e.g., version 2.0.0:
docker pull anskarl/jupyter-scala:2.0.0
To start this docker image you can simply execute a docker run
command that points to the anskarl/jupyter-scala:${IMAGE_VERSION}
, where ${IMAGE_VERSION}
is the version of this project (e.g., 2.0.0).
For simplicity you can run the following utility script:
./jupyter-scala.sh
This utility script creates an instance of anskarl/jupyter-scala:${IMAGE_VERSION}
and binds the current working path inside the running container into /home/${NB_USER}/work
, where ${NB_USER}
is the unprivileged user of jupyter (default is joyvan
, see details). Furthermore, since Almond uses Coursier for artifact fetching, this script uses a docker volume to store all downloaded dependencies (named as jupyter_scala_cache
). The volume is automatically created if does not exists.
In order to build docker image locally, you can execute the following:
make image
After a successful build the resulting image is tagged as anskarl/jupyter-scala:${IMAGE_VERSION}
and anskarl/jupyter-scala:latest
, where ${IMAGE_VERSION}
is the version of this project (e.g., 2.0.0)