Skip to content

Commit

Permalink
Dockerfile : remove environment creation by mamba as conda is suffici…
Browse files Browse the repository at this point in the history
…ent and mamba can lead to errors when activating the environment
  • Loading branch information
equipeGST committed Nov 30, 2023
1 parent 5958f61 commit 9cebdc1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
14 changes: 5 additions & 9 deletions RiboDoc/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ RUN apt-get update \
&& apt-get install -y wget git-all \
&& rm -rf /var/lib/apt/lists/*

RUN wget https://repo.anaconda.com/miniconda/Miniconda3-py310_23.3.1-0-Linux-x86_64.sh \
&& bash Miniconda3-py310_23.3.1-0-Linux-x86_64.sh -b -u -p /bin/miniconda3/ \
&& rm Miniconda3-py310_23.3.1-0-Linux-x86_64.sh
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-py310_23.5.2-0-Linux-x86_64.sh \
&& bash Miniconda3-py310_23.5.2-0-Linux-x86_64.sh -b -u -p /bin/miniconda3/ \
&& rm Miniconda3-py310_23.5.2-0-Linux-x86_64.sh

RUN git clone https://github.com/equipeGST/RiboDoc.git

Expand All @@ -29,14 +29,10 @@ ENV PATH=$PATH:/bin

SHELL ["/bin/bash", "-c"]

RUN conda install mamba=1.4.5 -n base -c conda-forge -y \
&& mamba env create -f /RiboDoc/RiboDoc/RiboDoc_env.yml
RUN conda env create -f /RiboDoc/RiboDoc/RiboDoc_env.yml
RUN conda init bash


RUN echo "conda activate RiboDoc_env" >> /bin/.bashrc \
&& conda info --envs \
&& conda list --name RiboDoc_env
RUN echo "conda activate RiboDoc_env" >> /bin/.bashrc

ENV PATH=/bin/miniconda3/envs/RiboDoc_env/bin:$PATH

Expand Down
2 changes: 1 addition & 1 deletion RiboDoc/environment_creation_command.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Using the "mamba" package manager :
Using the "mamba" package manager from conda (anaconda/miniconda) :
mamba create --name RiboDoc_env -c conda-forge -c bioconda python r-base snakemake graphviz bioconductor-deseq2 r-rmarkdown bowtie2 hisat2 fastqc cutadapt "samtools=1.14" htseq gawk bedtools gffread gffutils r-stringr r-factominer r-devtools r-rlang r-cli r-memoise r-pkgload r-stringi r-dplyr r-rsqlite r-xml r-curl r-optparse bioconductor-genomicfeatures bioconductor-biocgenerics bioconductor-genomeinfodb bioconductor-biostrings bioconductor-genomicalignments biopython r-data.table r-ggplot2 r-ggrepel pysam

0 comments on commit 9cebdc1

Please sign in to comment.