Skip to content

Commit

Permalink
try mamba
Browse files Browse the repository at this point in the history
  • Loading branch information
eeholmes committed Apr 6, 2024
1 parent fc9abac commit bd16f4c
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 7 deletions.
10 changes: 3 additions & 7 deletions images/arcgis/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
#
FROM jupyter/base-notebook:lab-2.2.9

RUN conda install --yes 'jupyter-server-proxy=3.2.2' && \
conda clean --all -f -y

RUN conda install --yes -c esri 'arcgis=2.0.0' && \
conda clean --all -f -y
RUN conda install --yes rasterio xarray geopandas && conda clean --all -f -y
RUN mamba update -c esri 'arcgis=2.0.0'
RUN mamba update rasterio xarray geopandas

RUN jupyter labextension install @jupyter-widgets/jupyterlab-manager@2 && \
jupyter labextension install [email protected]

# version control for jupyter notebooks
RUN conda install --yes jupytext -c conda-forge && conda clean --all -f -y
RUN mamba update jupytext

COPY apt.txt /tmp/apt.txt

Expand Down
37 changes: 37 additions & 0 deletions images/arcgis/Dockerfile_works
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#
FROM jupyter/base-notebook:lab-2.2.9

RUN conda install --yes 'jupyter-server-proxy=3.2.2' && \
conda clean --all -f -y

RUN conda install --yes -c esri 'arcgis=2.0.0' && \
conda clean --all -f -y
RUN conda install --yes rasterio xarray geopandas && conda clean --all -f -y

RUN jupyter labextension install @jupyter-widgets/jupyterlab-manager@2 && \
jupyter labextension install [email protected]

# version control for jupyter notebooks
RUN conda install --yes jupytext -c conda-forge && 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}"

0 comments on commit bd16f4c

Please sign in to comment.