Skip to content

Commit

Permalink
Update .gitlab-ci.yml
Browse files Browse the repository at this point in the history
Updated docker container to use mamba instead of conda
  • Loading branch information
johausmann authored Oct 26, 2023
1 parent 1b64f83 commit 585df50
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,23 @@ before_script:
#- pip3 install biopython==1.76
- wget -qO- https://get.nextflow.io | bash && cp nextflow /usr/local/bin/nextflow
- nextflow help
- wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
- wget -q https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-Linux-x86_64.sh
- mkdir /root/.conda
- bash Miniconda3-latest-Linux-x86_64.sh -b && cp /root/miniconda3/bin/* /usr/local/bin/
- rm -f Miniconda3-latest-Linux-x86_64.sh
- conda --version
- bash Mambaforge-Linux-x86_64.sh -b -p /usr/local/bin/conda
- rm -f Mambaforge-Linux-x86_64.sh
- source /usr/local/bin/conda/etc/profile.d/conda.sh
- source /usr/local/bin/conda/etc/profile.d/mamba.sh
- which mamba
- mamba --version
# this is a workaround for https://github.com/mamba-org/mamba/issues/1993
- echo "use_lockfiles:" >> ~/.condarc
- echo " - false" >> ~/.condarc
- echo "channels:" >> ~/.condarc
- echo " - defaults" >> ~/.condarc
- echo " - conda-forge" >> ~/.condarc
- echo " - bioconda" >> ~/.condarc
- cat ~/.condarc


stages:
- test
Expand Down

0 comments on commit 585df50

Please sign in to comment.