Skip to content

Commit

Permalink
try installing xarray
Browse files Browse the repository at this point in the history
  • Loading branch information
eeholmes committed Apr 7, 2024
1 parent 7c2afcc commit 3943856
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 147 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker-image-argis-pangeo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: Docker Image CI argis pangeo
# IMAGE_TAG whatever tag you want to automatically be used
env:
IMAGE_NAME: arcgis-pangeo
IMAGE_TAG: latest
IMAGE_TAG: xarray

on:
workflow_dispatch: null
Expand Down
41 changes: 32 additions & 9 deletions images/arcgis-pangeo/Dockerfile
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}"
43 changes: 0 additions & 43 deletions images/arcgis-pangeo/Dockerfile_xarray

This file was deleted.

15 changes: 0 additions & 15 deletions images/arcgis-pangeo/environment.yml

This file was deleted.

70 changes: 0 additions & 70 deletions images/arcgis-pangeo/really_full_environment.yml

This file was deleted.

9 changes: 0 additions & 9 deletions images/arcgis-pangeo/start

This file was deleted.

File renamed without changes.

0 comments on commit 3943856

Please sign in to comment.