-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from LANL-Bioinformatics/dockerReduction
Multistage docker builds + charliecloud for modules currently in main.
- Loading branch information
Showing
6 changed files
with
67 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,46 @@ | ||
# syntax=docker/dockerfile:1 | ||
FROM continuumio/miniconda3:23.5.2-0 | ||
FROM continuumio/miniconda3:23.5.2-0 AS build | ||
|
||
ENV container=docker | ||
|
||
# add conda channels | ||
RUN conda config --add channels conda-forge \ | ||
&& conda config --add channels bioconda | ||
|
||
# install dependencies | ||
RUN conda install -c conda-forge r-base | ||
RUN conda install -c conda-forge python=3.11 | ||
RUN conda install -c bioconda perl-json | ||
RUN conda install -c bioconda samclip=0.4.0 | ||
RUN conda install -c bioconda bwa | ||
RUN conda install -c bioconda bowtie2 | ||
RUN conda install -c bioconda samtools=1.6 | ||
|
||
ADD bin/bam_to_fastq.pl /opt/conda/bin | ||
ADD bin/contig_stats.pl /opt/conda/bin | ||
ADD bin/ContigCoverageFold_plots_from_samPileup.pl /opt/conda/bin | ||
ADD bin/fastq_utility.pm /opt/conda/bin | ||
ADD bin/runReadsToContig.pl /opt/conda/bin | ||
ADD bin/tab2Json_for_dataTable.pl /opt/conda/bin | ||
|
||
CMD ["/bin/bash"] | ||
RUN conda init bash \ | ||
&& . ~/.bashrc \ | ||
&& conda create --name readsToContig \ | ||
&& conda activate readsToContig | ||
|
||
RUN conda install -n readsToContig -c conda-forge r-base | ||
RUN conda install -n readsToContig -c conda-forge python=3.11 | ||
RUN conda install -n readsToContig -c bioconda perl-json | ||
RUN conda install -n readsToContig -c bioconda samclip=0.4.0 | ||
RUN conda install -n readsToContig -c bioconda bwa | ||
RUN conda install -n readsToContig -c bioconda bowtie2 | ||
RUN conda install -n readsToContig -c bioconda samtools=1.6 | ||
RUN conda install -c conda-forge conda-pack | ||
|
||
|
||
ADD bin/bam_to_fastq.pl /opt/conda/envs/readsToContig/bin | ||
ADD bin/contig_stats.pl /opt/conda/envs/readsToContig/bin | ||
ADD bin/ContigCoverageFold_plots_from_samPileup.pl /opt/conda/envs/readsToContig/bin | ||
ADD bin/fastq_utility.pm /opt/conda/envs/readsToContig/bin | ||
ADD bin/runReadsToContig.pl /opt/conda/envs/readsToContig/bin | ||
ADD bin/tab2Json_for_dataTable.pl /opt/conda/envs/readsToContig/bin | ||
|
||
RUN conda-pack -n readsToContig -o /tmp/env.tar && \ | ||
mkdir /venv && cd /venv && tar xf /tmp/env.tar && \ | ||
rm /tmp/env.tar | ||
|
||
RUN /venv/bin/conda-unpack | ||
|
||
FROM debian:buster AS runtime | ||
#RUN apk add --no-cache bash | ||
|
||
COPY --from=build /venv /venv | ||
ENV PERL5LIB=/venv/lib/perl5/core_perl | ||
ENV PATH=/venv/bin:$PATH | ||
|
||
SHELL ["/bin/bash", "-c"] | ||
CMD /bin/bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters