Skip to content

Commit

Permalink
use mamba to build conda envs
Browse files Browse the repository at this point in the history
  • Loading branch information
tpillone committed Oct 13, 2023
1 parent 2e3f53c commit 30bbb75
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bin/zdb
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ elif [[ "$1" == "webapp" ]]; then
conda_prefix="$NEXTFLOW_DIR/conda-env/webapp"
if [[ ! -e "$conda_prefix" ]]; then
echo "Building conda environment..."
conda env create --prefix $conda_prefix -f $NEXTFLOW_DIR/conda/webapp.yaml &> conda_log
mamba env create --prefix $conda_prefix -f $NEXTFLOW_DIR/conda/webapp.yaml &> conda_log
if [[ $? -eq 0 ]]; then
echo "Done"
else
Expand Down
1 change: 1 addition & 0 deletions nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ singularity.autoMounts = true

docker.enabled = "$params.docker" == "true"?true:false
conda.enabled = "$params.conda" == "true"?true:false
conda.useMamba = true

params.annotation_container = "registry.hub.docker.com/metagenlab/annotation-pipeline:1.3.1"

Expand Down

0 comments on commit 30bbb75

Please sign in to comment.