-
Notifications
You must be signed in to change notification settings - Fork 6
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
Various updates #45
Various updates #45
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,34 @@ | ||
This repository contains common definitions for the bioconda build system, e.g., the bioconda-utils tag to use and the miniconda version. | ||
# Overview | ||
|
||
This repository acts as a central "source of truth" which can be used by | ||
various components of the Bioconda build system. | ||
|
||
- `common.sh` contains environment variables that control versions | ||
# Components | ||
|
||
**`common.sh`:** contains environment variables that control versions. | ||
|
||
**`install-and-set-up-conda.sh`:** | ||
- downloads and installs conda using the Mambaforge distribution | ||
- installs bioconda-utils dependencies | ||
- installs the version of bioconda-utils specified in common.sh via pip install | ||
|
||
**`configure-conda.sh`:** ensures channels are configured correctly. | ||
|
||
# Typical usage | ||
|
||
In practice, a typical CI environment will do the following: | ||
|
||
1. Download the files, typically via: | ||
|
||
```bash | ||
wget https://raw.githubusercontent.com/bioconda/bioconda-common/master/{common,install-and-set-up-conda,configure-conda}.sh | ||
``` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe 3 separate commands? I guess the intention here is to copy-and-paste? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I was documenting what we currently have. Could go either way, but I guess it's slightly easier to copy-paste this single line. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok. Agree. |
||
|
||
2. Run `install-and-set-up-conda.sh` (which sources `common.sh`). | ||
|
||
3. Use the CI platform's mechanism to cache the conda install dir (which is | ||
configured in `common.sh`). | ||
|
||
4. After a cache restore, run `configure-conda.sh`. The reason for this is that | ||
the `--system` arg for `conda config` is not supported by mamba, and so the | ||
channel config ends up in the home directory which is not cached. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
MINICONDA_VER=py37_4.8.3 | ||
BIOCONDA_UTILS_TAG=v2.9.0 | ||
MAMBAFORGE_VER=23.1.0-1 | ||
MAMBAFORGE_INSTALLATION_DIR="/opt/mambaforge" |
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 should not use mambaforge anymore. Conda-forge discourages it and advertises miniforge.
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.
Was not aware of this, thanks for pointing it out.
This PR was mostly about documentation; do you think it's worth changing mambaforge -> miniforge in this PR? Theoretically it should not change anything in the build process since we're already on 23.3.1, so this is more a question of "do you think it will actually not change anything".
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.
A different PR is ok. But we should get rid of it at some point.