Skip to content

Commit

Permalink
chore: fix conda installs (#54)
Browse files Browse the repository at this point in the history
* chore: do not use the defaults channel

* chore: use mamba everywhere
  • Loading branch information
rokroskar authored Oct 27, 2023
1 parent 58ac753 commit 46a5d58
Show file tree
Hide file tree
Showing 11 changed files with 10 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Renv/environment.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: "base"
channels:
- defaults
- conda-forge
# dependencies:
# - add packages here
# - one per line
Expand Down
2 changes: 1 addition & 1 deletion aiida/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ USER ${NB_USER}

# install the python dependencies
COPY requirements.txt environment.yml /tmp/
RUN conda env update -q -f /tmp/environment.yml
RUN mamba env update -q -f /tmp/environment.yml

# get around pyyaml upgrade error ("Cannot uninstall 'PyYAML'. It is a distutils installed project...")
RUN /opt/conda/bin/pip install --upgrade --force-reinstall pip==9.0.3 && \
Expand Down
1 change: 0 additions & 1 deletion aiida/environment.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: "base"
channels:
- conda-forge
- defaults
- cjs14
dependencies:
# - aiida-core
Expand Down
2 changes: 1 addition & 1 deletion desktop/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ FROM renku/renkulab-vnc:0.20.0

# install the python dependencies
COPY requirements.txt environment.yml /tmp/
RUN conda env update -q -f /tmp/environment.yml && \
RUN mamba env update -q -f /tmp/environment.yml && \
/opt/conda/bin/pip install -r /tmp/requirements.txt && \
conda clean -y --all && \
conda env export -n "root"
Expand Down
2 changes: 1 addition & 1 deletion desktop/environment.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: "base"
channels:
- defaults
- conda-forge
# dependencies:
# - add packages here
# - one per line
Expand Down
2 changes: 1 addition & 1 deletion matlab/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ FROM renku/renkulab-matlab:0.20.0

# install the python dependencies
COPY requirements.txt environment.yml /tmp/
RUN conda env update -q -f /tmp/environment.yml && \
RUN mamba env update -q -f /tmp/environment.yml && \
/opt/conda/bin/pip install -r /tmp/requirements.txt && \
conda clean -y --all && \
conda env export -n "root"
Expand Down
2 changes: 1 addition & 1 deletion matlab/environment.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: "base"
channels:
- defaults
- conda-forge
# dependencies:
# - add packages here
# - one per line
Expand Down
4 changes: 2 additions & 2 deletions python-minimal-streamlit/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ FROM renku/renkulab-py:3.10-0.20.0

# install the python dependencies
COPY requirements.txt environment.yml /tmp/
RUN conda env update -q -f /tmp/environment.yml && \
RUN mamba env update -q -f /tmp/environment.yml && \
/opt/conda/bin/pip install -r /tmp/requirements.txt && \
conda clean -y --all && \
conda env export -n "root"

# RENKU_VERSION determines the version of the renku CLI
# that will be used in this image. To find the latest version,
# visit https://pypi.org/project/renku/#history.
ARG RENKU_VERSION={{ __renku_version__ | default("1.2.4") }}
ARG RENKU_VERSION={{ __renku_version__ | default("2.6.2") }}

# to run streamlit
COPY jupyter_notebook_config.py ${HOME}/.jupyter/
Expand Down
1 change: 0 additions & 1 deletion python-minimal-streamlit/environment.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
name: "base"
channels:
- defaults
- conda-forge
dependencies:
- pip
Expand Down
2 changes: 1 addition & 1 deletion qgis/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ FROM renku/renkulab-qgis:0.20.0

# install the python dependencies
COPY requirements.txt environment.yml /tmp/
RUN conda env update -q -f /tmp/environment.yml && \
RUN mamba env update -q -f /tmp/environment.yml && \
/opt/conda/bin/pip install -r /tmp/requirements.txt && \
conda clean -y --all && \
conda env export -n "root"
Expand Down
2 changes: 1 addition & 1 deletion qgis/environment.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: "base"
channels:
- defaults
- conda-forge
# dependencies:
# - add packages here
# - one per line
Expand Down

0 comments on commit 46a5d58

Please sign in to comment.