Skip to content

Commit

Permalink
Install ruaml.yaml via conda. (#21)
Browse files Browse the repository at this point in the history
There are two different packages available on conda: `ruamel.yaml`
and `ruamel_yaml`. Pip cannot distinguish them, therefore we
have to install `ruamel.yaml` via conda.
  • Loading branch information
yakutovicha authored Sep 2, 2020
1 parent e279aff commit bb65e0d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,11 @@ RUN cd /tmp && \
conda update --all --quiet --yes && \
conda clean --all -f -y

# Upgrade ruamel.py version. Fixes https://github.com/aiidateam/aiida-core/issues/4339.
RUN conda install ruamel.yaml==0.16.10

# This is needed to let non-root users create conda environments.
RUN mkdir /opt/conda/pkgs && touch /opt/conda/pkgs/urls.txt
RUN touch /opt/conda/pkgs/urls.txt

# Create system user.
COPY my_init.d/create-system-user.sh /etc/my_init.d/10_create-system-user.sh
Expand Down

0 comments on commit bb65e0d

Please sign in to comment.