diff --git a/.github/workflows/docker-image-argis-pangeo.yml b/.github/workflows/docker-image-argis-pangeo.yml index 7f65618..0579cdb 100644 --- a/.github/workflows/docker-image-argis-pangeo.yml +++ b/.github/workflows/docker-image-argis-pangeo.yml @@ -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 diff --git a/images/arcgis-pangeo/Dockerfile b/images/arcgis-pangeo/Dockerfile index 461ee84..eedb1ea 100644 --- a/images/arcgis-pangeo/Dockerfile +++ b/images/arcgis-pangeo/Dockerfile @@ -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 arcgis-map-ipywidget@2.0.0 +# 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} \ No newline at end of file +RUN fix-permissions "${CONDA_DIR}" && \ + fix-permissions "/home/${NB_USER}" diff --git a/images/arcgis-pangeo/Dockerfile_xarray b/images/arcgis-pangeo/Dockerfile_xarray deleted file mode 100644 index b00d5e6..0000000 --- a/images/arcgis-pangeo/Dockerfile_xarray +++ /dev/null @@ -1,43 +0,0 @@ -# ancient version by needed for Python 3.9 -FROM jupyter/base-notebook:lab-2.2.9 - -RUN jupyter labextension install @jupyter-widgets/jupyterlab-manager@2 && \ - jupyter labextension install arcgis-map-ipywidget@2.0.0 - -# 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 -RUN conda install -n base --yes -c conda-forge geopandas - -# version control for jupyter notebooks -RUN conda install -n base --yes jupytext -c conda-forge - -RUN conda clean --all -f -y - -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} - -RUN fix-permissions "${CONDA_DIR}" && \ - fix-permissions "/home/${NB_USER}" diff --git a/images/arcgis-pangeo/environment.yml b/images/arcgis-pangeo/environment.yml deleted file mode 100644 index e2160a6..0000000 --- a/images/arcgis-pangeo/environment.yml +++ /dev/null @@ -1,15 +0,0 @@ -name: arcgis-pangeo -channels: - - conda-forge -dependencies: - - python=3.9 - - pangeo-notebook -# - esri::arcgis=2.0.0 -## Utilities - - pip - - nodejs # for installing jupyterlab-widgets - - ipywidgets -## - - jupyterlab=2.2.9 - - jupyterlab-git - - jupyter-resource-usage diff --git a/images/arcgis-pangeo/really_full_environment.yml b/images/arcgis-pangeo/really_full_environment.yml deleted file mode 100644 index 4e05870..0000000 --- a/images/arcgis-pangeo/really_full_environment.yml +++ /dev/null @@ -1,70 +0,0 @@ -name: arcgis-pangeo -channels: - - conda-forge -dependencies: - - python=3.9 - - pangeo-notebook -# - esri::arcgis=2.0.0 -## These are core geospatial packages - - dask - - distributed - - rioxarray - - xarray>=2022.12 - - gdal~=3.6 - - libgdal - - geopandas - - rasterio -## These are for dealing with file formats - - h5netcdf - - netcdf4 - - h5py - - hdf5plugin - - pydap - - zarr - - kerchunk - - rechunker - - s3fs -## Visualization and plotting - - geoviews - - matplotlib-base - - hvplot - - datashader - - bqplot - - ipyleaflet -## Working with data catalogs and searching - - earthaccess>=0.5.1 - - intake - - pystac-client - - pyproj - - cartopy -## Utilities - - conda-lock - - pip - - nbgitpuller~=1.1.0 - - nodejs # for installing jupyterlab-widgets - - ipywidgets -## - - jupyterlab=2.2.9 - - jupyterlab-git - - jupyterlab-favorites - - jupyter-resource-usage - - jupyterlab-geojson - - jupyterlab-git - - jupyter-resource-usage - - jupyterlab-link-share - - jupyterlab-h5web -## Add VSCode; server proxy allows the other proxies - - jupyter-server-proxy - - jupyter-vscode-proxy - - code-server >=3.2 -## Unknown - - pynco - - shapely - - pyresample - - joblib - - lxml - - ipympl - - pooch - - rasterstats - - pqdm - diff --git a/images/arcgis-pangeo/start b/images/arcgis-pangeo/start deleted file mode 100644 index 61cbfc4..0000000 --- a/images/arcgis-pangeo/start +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash -l - -# ==== ONLY EDIT WITHIN THIS BLOCK ===== - -export PANGEO_ENV="arcgis-pangeo" - -# ==== ONLY EDIT WITHIN THIS BLOCK ===== - -exec "$@" \ No newline at end of file diff --git a/images/arcgis-pangeo/full_environment.yml b/images/arcgis-pangeo/xarray_environment.yml similarity index 100% rename from images/arcgis-pangeo/full_environment.yml rename to images/arcgis-pangeo/xarray_environment.yml