Sign inSign up

zalf/opendatacube-notebook

By zalf

•Updated over 3 years ago

ZALF jupyterhub Open Data Cube image. This can run inside of jupyterhub or as a single notebook.

Image
0

1.4K

zalf/opendatacube-notebook repository overview

To connect this image to a datacube use the following environment variables: DB_HOSTNAME: "" DB_PORT: "" DB_DATABASE: "" DB_USERNAME: "" DB_PASSWORD: ""

Dockerfile:

FROM jupyter/minimal-notebook:python-3.10.8

COPY requirements.txt /conf/
# set password
USER root

RUN echo "jovyan ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/notebook
RUN echo "default 0.0.0.0" >> /etc/networks

RUN apt-get update -y && apt-get install -y python3-dev libgdal-dev libhdf5-serial-dev libnetcdf-dev g++ gcc binutils gdal-bin python3-gdal libproj-dev libgdal-dev
RUN export CPLUS_INCLUDE_PATH=/usr/include/gdal
RUN export C_INCLUDE_PATH=/usr/include/gdal

RUN pip install GDAL=="$(gdal-config --version)"
RUN pip install -r /conf/requirements.txt

USER jovyan
WORKDIR /home/jovyan/

requirements.txt:


# ODC/DEA: these are installed in builder stage
otps
eodatasets3

# Dale's s2cloudmask
#  https://github.com/daleroberts/s2cloudmask
s2cloudmask
# need to be installed after to override libs with non-gl ones
opencv-python-headless
opencv-contrib-python-headless

datacube[performance,s3]
odc-algo
odc-cloud[ASYNC]
odc-dscache
odc-io
odc-stac
odc-stats[ows]
odc-ui
odc-geo

dea-tools

thredds-crawler
hdstats==0.2.1
hdmedians
datacube-stats
fc
--extra-index-url="https://packages.dea.ga.gov.au"

Tag summary

Content type

Image

Digest

sha256:531e60fa1…

Size

2.4 GB

Last updated

about 4 years ago

docker pull zalf/opendatacube-notebook