-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
33 additions
and
147 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 |
---|---|---|
@@ -1,14 +1,37 @@ | ||
FROM pangeo/base-image:2023.01.13 | ||
# pango base will look for environment.yml and apt.txt and install | ||
# ancient version by needed for Python 3.9 | ||
FROM jupyter/base-notebook:lab-2.2.9 | ||
|
||
# activate notebook env that pangeo base creates | ||
RUN conda init zsh && conda init bash | ||
|
||
USER ${NB_USER} | ||
|
||
# broken here; complaining re node.js and npm | ||
RUN jupyter labextension install @jupyter-widgets/jupyterlab-manager@2 && \ | ||
jupyter labextension install [email protected] | ||
|
||
# conda is ancient in this old version of base-notebook | ||
RUN conda install -n base conda=22.11.1 | ||
RUN conda update -n base conda | ||
# faster solver in the more recent conda releases | ||
RUN conda config --set solver libmamba | ||
|
||
RUN conda install -n base --yes -c esri 'arcgis=2.0.0' | ||
RUN conda install -n base --yes -c conda-forge xarray dask netCDF4 bottleneck | ||
RUN conda install -n base --yes -c conda-forge rasterio gdal~=3.6 geopandas | ||
|
||
COPY apt.txt /tmp/apt.txt | ||
|
||
USER root | ||
|
||
RUN echo "Installing Apt-get packages..." \ | ||
&& apt-get update --fix-missing > /dev/null \ | ||
&& apt-get install -y apt-utils wget zip tzdata > /dev/null \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN echo "Installing helpful packages..." \ | ||
&& apt-get update --fix-missing > /dev/null \ | ||
# Read apt.txt line by line, and execute apt-get install -y for each line in apt.txt | ||
&& xargs -a /tmp/apt.txt apt-get install -y \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
USER ${NB_USER} | ||
|
||
WORKDIR ${HOME} | ||
RUN fix-permissions "${CONDA_DIR}" && \ | ||
fix-permissions "/home/${NB_USER}" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.