Skip to content

Commit 9c9f84e

Browse files
an-altosiannmalwinkannie-altosChristelKrueger
committed
feat(qc): add Dockerfiles to build the QC containers from environment.yml
Each module's Dockerfile builds its container (micromamba base + the pinned environment.yml, Quarto env vars set) so the images are reproducible and ready to be rebuilt / migrated to the nf-core org. Co-authored-by: Malwina Prater <mprater@altoslabs.com> Co-authored-by: Nell Nie <nnie@altoslabs.com> Co-authored-by: Christel Krueger <ckrueger@altoslabs.com>
1 parent 74f6239 commit 9c9f84e

2 files changed

Lines changed: 46 additions & 0 deletions

File tree

modules/local/image_qc/Dockerfile

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Container for the image QC module (analysis + Quarto report).
2+
# Built from environment.yml in this directory. Tagged and pushed as
3+
# quay.io/dongzehe/image_qc:1.0.0 (to be migrated to the nf-core org for release).
4+
#
5+
# docker build -t quay.io/<namespace>/image_qc:1.0.0 modules/local/image_qc
6+
#
7+
# Note: behind a corporate proxy / private conda mirror you may need to provide a
8+
# CA bundle and channel config at build time (e.g. via BuildKit --mount=type=secret);
9+
# a standard build resolves the pinned packages directly from conda-forge/bioconda.
10+
FROM mambaorg/micromamba:2.0.5
11+
COPY --chown=$MAMBA_USER:$MAMBA_USER environment.yml /tmp/environment.yml
12+
RUN micromamba install -y -n base -f /tmp/environment.yml \
13+
&& micromamba clean -a -f -y \
14+
&& rm -f /tmp/environment.yml
15+
ENV PATH="/opt/conda/bin:$PATH" \
16+
QUARTO_DENO=/opt/conda/bin/deno \
17+
QUARTO_DENO_DOM=/opt/conda/lib/deno_dom.so \
18+
QUARTO_PANDOC=/opt/conda/bin/pandoc \
19+
QUARTO_ESBUILD=/opt/conda/bin/esbuild \
20+
QUARTO_TYPST=/opt/conda/bin/typst \
21+
QUARTO_DART_SASS=/opt/conda/bin/sass \
22+
QUARTO_SHARE_PATH=/opt/conda/share/quarto \
23+
QUARTO_CONDA_PREFIX=/opt/conda
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Container for the transcript QC module (analysis + Quarto report).
2+
# Built from environment.yml in this directory. Tagged and pushed as
3+
# quay.io/dongzehe/transcript_qc:1.0.0 (to be migrated to the nf-core org for release).
4+
#
5+
# docker build -t quay.io/<namespace>/transcript_qc:1.0.0 modules/local/transcript_qc
6+
#
7+
# Note: behind a corporate proxy / private conda mirror you may need to provide a
8+
# CA bundle and channel config at build time (e.g. via BuildKit --mount=type=secret);
9+
# a standard build resolves the pinned packages directly from conda-forge/bioconda.
10+
FROM mambaorg/micromamba:2.0.5
11+
COPY --chown=$MAMBA_USER:$MAMBA_USER environment.yml /tmp/environment.yml
12+
RUN micromamba install -y -n base -f /tmp/environment.yml \
13+
&& micromamba clean -a -f -y \
14+
&& rm -f /tmp/environment.yml
15+
ENV PATH="/opt/conda/bin:$PATH" \
16+
QUARTO_DENO=/opt/conda/bin/deno \
17+
QUARTO_DENO_DOM=/opt/conda/lib/deno_dom.so \
18+
QUARTO_PANDOC=/opt/conda/bin/pandoc \
19+
QUARTO_ESBUILD=/opt/conda/bin/esbuild \
20+
QUARTO_TYPST=/opt/conda/bin/typst \
21+
QUARTO_DART_SASS=/opt/conda/bin/sass \
22+
QUARTO_SHARE_PATH=/opt/conda/share/quarto \
23+
QUARTO_CONDA_PREFIX=/opt/conda

0 commit comments

Comments
 (0)