You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add Linux aarch64/arm64 support for bioconda-utils (#866)
This PR try to add Linux aarch64/arm64 support for bioconda-utils:
- Support `BASE_IMAGE` build args in `Dockerfile`: the devs can specify
`BASE_IMAGE` to switch base image.
- `bioconda_utils/bioconda_utils-requirements.txt`: Upgrade packages
version to support Linux aarch64.
- Add `--docker-base-image` image to help users specify docker base
image.
- Add Linux aarch64 image build to `release-please.yml` and
`build-image.yml` workflow
- `bioconda_utils/docker_utils.py`: create conda build subdir according
to arch.
After this PR, users can build the bioconda package by using same cmd
with x86 by specifing `--docker-base-image` to build the package.
Note that the `mulled-test` are still not supported, there are a circle
dependency between `bioconda-containers` and bioconda-utils, we'd better
to support bioconda-utils aarch64 image first.
Related: #706
Test step:
```bash
$ uname -m
aarch64
# Activate a conda env
conda create -n biotest
conda activate biotest
git clone https://github.com/Yikun/bioconda-utils.git
cd bioconda-utils
git checkout aarch64
# Build docker image with embed involucro for bioconda
docker build -t ghcr.io/yikun/bioconda-utils-build-env-cos7-aarch64 -f Dockerfile .
# Install all bioconda-utils
conda install --file bioconda_utils/bioconda_utils-requirements.txt -c conda-forge -c bioconda
# Install the bioconda-utils with this PR
pip install -e .
# Test
bioconda-utils -h
# Build a package to test
cd bioconda-recipes
bioconda-utils build --docker --packages bamstats --docker-base-image ghcr.io/yikun/bioconda-utils-build-env-cos7-aarch64 --force
```
---------
Signed-off-by: Yikun Jiang <yikunkero@gmail.com>
0 commit comments