Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade binder submodule, use fully pinned environment definition #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

alimanfoo
Copy link
Member

This PR upgrades the binder submodule, which now provisions a fully pinned conda environment definition file, including all dependency packages (see malariagen/mgenv#52 for further details).

&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

USER $NB_USER
RUN conda config --set ssl_verify no
COPY binder/environment.yml /tmp/environment.yml
COPY binder/environment-pinned-linux.yml /tmp/environment.yml
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the main change, using the fully pinned environment file.

RUN conda config --add channels bioconda
RUN conda config --add channels conda-forge
#RUN conda update --yes conda
RUN conda config --set channel_priority strict
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is also an important change, ensures packages are pulled from conda-forge instead of defaults wherever possible, which results in a more consistent environment.

RUN conda config --add channels bioconda
RUN conda config --add channels conda-forge
#RUN conda update --yes conda
RUN conda config --set channel_priority strict
RUN conda update --yes conda
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I saw this had been commented out, but there have been some improvements in recent conda versions, so thought maybe best to run it?


RUN conda env update --file /tmp/environment.yml --prune
RUN conda env update --file /tmp/environment.yml
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are installing this into the base environment, is that right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I.e., I think the environment name from within the environment file will be ignored.

@alimanfoo
Copy link
Member Author

Hi @slejdops, happy to talk through anything here, let me know. cc @idwright.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant