|
|
# nomadlab/notebook #
|
|
|
|
|
|
nomadlab/notebook is our customised docker image for beaker notebook. nomadlab/notebook also contains libraries related to NOMAD that are accessible inside beaker notebook, for example, python library for structural similarity and Scala libraries. Currently it is publicly unavailable but if you have access to [nomad-lab-base](https://gitlab.rzg.mpg.de/nomad-lab/nomad-lab-base) then you can easily build the docker image.
|
|
|
|
|
|
### Generating nomadlab/notebook ###
|
|
|
|
|
|
To generate nomadlab/notebook you will need [docker](https://docs.docker.com/) and latest version of [nomad-lab-base](https://gitlab.mpcdf.mpg.de/nomad-lab/nomad-lab-base/wikis/Getting-started). Once you have latest nomad-lab-base, run the following command in the project root directory.
|
|
|
|
|
|
$ sbt notebook/docker
|
|
|
|
|
|
On successful completion of the command, nomadlab/notebook:"#versionGoesHere" should be available locally. You can check it using :
|
|
|
|
|
|
$ docker images
|
|
|
|
|
|
To run the docker images run :
|
|
|
|
|
|
$ docker run -p 8801:8801 nomadlab/notebook:copyCorrectVersionHere
|
|
|
|
|
|
Now, you can use beaker as usual at
|
|
|
|
|
|
http://127.0.0.1:8801/
|
|
|
|
|
|
And NOMAD libraries should be available inside the notebook.
|
|
|
|
|
|
### Modifying nomadlab/notebook ###
|
|
|
|
|
|
You can modify the nomadlab/notebook as per your need. All settings are available in notebook sub-project in nomad-lab-base/build.sbt, and modifying it is straightforward. For example, you can include other NOMAD related python libraries by adding the following in section called new Dockerfile, in notebook sub-project :
|
|
|
|
|
|
add(baseDirectory.value / "../path_inside_nomad-lab-base/library_path/python-modules-path", "/usr/lib/python2.7")
|
|
|
|
|
|
# nomadlab/beaker #
|
|
|
|
|
|
nomadlab/notebook is based on [nomadlab/beaker](https://hub.docker.com/r/nomadlab/beaker/). Most probably you don't need to know the details of nomadlab/beaker. But if you are curious then go ahead...
|
|
|
|
|
|
Beaker is a great tool, but the [official docker image for beaker](https://hub.docker.com/r/beakernotebook/beaker/) is tuned differently then we would like, so we have created our own beaker image based upon the official image (called beakernotebook/beaker). Our beaker notebook, called nomadlab/beaker, doesn't not require a password when you start it and in the future will support an external authentication mechanism. The image is publicly available on [docker hub](https://hub.docker.com/r/nomadlab/beaker/) and currently the latest version is 1.6. |
|
|
\ No newline at end of file |