-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Created CriticalZone image. See #27003 * Created CriticalZone image. See #27003 * Amendments for gdal
- Loading branch information
Showing
2 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# CriticalZone | ||
|
||
|
||
ARG BASE_IMAGE=eginotebooks/base:latest | ||
FROM $BASE_IMAGE | ||
|
||
USER root | ||
|
||
RUN apt-get update \ | ||
&& apt-get install --no-install-recommends -y \ | ||
nco \ | ||
cdo \ | ||
cmake \ | ||
gdal-bin \ | ||
g++ \ | ||
python3-gdal \ | ||
libgdal-dev \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
USER $NB_UID | ||
|
||
RUN pip install --no-cache-dir \ | ||
xarray \ | ||
rioxarray \ | ||
netCDF4 \ | ||
pandas \ | ||
scipy \ | ||
matplotlib \ | ||
numpy \ | ||
GDAL=="$(gdal-config --version).*" \ | ||
h5netcdf | ||
|
||
#RUN conda install -c conda-forge gdal | ||
|
||
# ------------------------------- | ||
# JupyterLab extensions | ||
# ------------------------------- | ||
RUN pip install --no-cache-dir jupyterlab-topbar | ||
RUN jupyter labextension disable @jupyterlab/filebrowser-extension:share-file |