Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions singleuser/csdms-tools/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,18 @@ FROM cuahsi/singleuser-base:$BASE_VERSION
USER $NB_UID

ENV XDG_CACHE_HOME /home/$NB_USER/.cache/
ENV CONDA_PKG_DIRS=$HOME/.conda/pkgs

WORKDIR /opt
RUN > /opt/conda/conda-meta/pinned # clear conda pins
COPY --chown=$NB_UID:$NB_UID environment.yaml /tmp/environment.yaml
RUN mamba env update -n base --file /tmp/environment.yaml \
&& mamba clean -afy
WORKDIR /

# downgrade pyopenssl to 23.0.0
RUN mamba install -y \
--channel conda-forge \
pyopenssl=23.0.0 \
pyopenssl \
&& mamba clean --all -f -y

# pymt
Expand All @@ -28,10 +35,6 @@ pymt_gipl==0.1.1 \
pymt_rafem==0.1.4 \
&& mamba clean --all -f -y

# upgrade pyopenssl to fix an issue that is preventing
# nbfetch from loading correctly.
RUN mamba upgrade pyopenssl -y


# data component
RUN mamba install -y \
Expand Down
5 changes: 5 additions & 0 deletions singleuser/csdms-tools/environment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
name: base
channels:
- conda-forge
dependencies:
- python==3.9.16