-
Notifications
You must be signed in to change notification settings - Fork 2
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
base: master
Are you sure you want to change the base?
Conversation
&& 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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
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).