Skip to content

Commit

Permalink
Adjust README and Dockerfile to bring in more packages
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed Feb 5, 2021
1 parent e3c98e3 commit 0f471be
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 2 deletions.
19 changes: 18 additions & 1 deletion Dockerfile
@@ -1,4 +1,21 @@
FROM jupyter/base-notebook
# Copyright (c) Earthobservations Development Team.
# Distributed under the terms of the MIT License.

ARG BASE_CONTAINER=scioquiver/notebooks:cgspatial-notebook
FROM $BASE_CONTAINER

LABEL maintainer="Earthobservations Developers <earthobservations@panodata.org>"

RUN pip install \
luftdatenpumpe \
phenodata \
wetterdienst \
wradlib

USER $NB_USER

WORKDIR $HOME


# Add RUN statements to install packages as the $NB_USER defined in the base images.

Expand Down
45 changes: 44 additions & 1 deletion README.md
@@ -1,3 +1,46 @@
# earthobservations-notebook

earthobservations-notebook is a community maintained Jupyter Docker Stack image
## About
`earthobservations-notebook` is a community Jupyter Docker Stack image.

The image includes some gems on top of the [cgspatial-notebook] image, which is
in turn based on the [datascience-notebook] and the [scipy-notebook] images.


## Bootstrapping phase
- We are following the guidelines at [Jupyter Community Stacks].
- It is a new notebook and actively looking for contributors.
- Our mission is _standing on the shoulder of giants_ without _reinventing the wheel_.


## Build
The image is not yet available on any container registry. So, we have to build
it beforehand.
```sh
docker build --tag=earthobservations/earthobservations-notebook .
```


## Run
Invoke an _ephemeral_ container running a Jupyter Notebook server and expose it
on port 8888.
```sh
docker run -it --rm --publish=8888:8888 earthobservations/earthobservations-notebook
```
The server logs will appear in the terminal. Visiting
`http://<hostname>:8888/?token=<token>` in a browser loads JupyterLab, where
`hostname` is the name of the computer running docker and `token` is the secret
token printed in the console. Docker destroys the container after notebook
server exit.


## Credits
Kudos go to all people from the community for tirelessly working on the
foundation infrastructure. You know who you are.



[Jupyter Community Stacks]: https://jupyter-docker-stacks.readthedocs.io/en/latest/contributing/stacks.html
[cgspatial-notebook]: https://github.com/SCiO-systems/cgspatial-notebook
[datascience-notebook]: https://jupyter-docker-stacks.readthedocs.io/en/latest/using/selecting.html#jupyter-datascience-notebook
[scipy-notebook]: https://jupyter-docker-stacks.readthedocs.io/en/latest/using/selecting.html#jupyter-scipy-notebook

0 comments on commit 0f471be

Please sign in to comment.