From 15d76e3a74a9d4fefca4cb1062a855113efb0d35 Mon Sep 17 00:00:00 2001 From: Andrew Gaines Date: Thu, 21 Aug 2025 12:24:17 -0600 Subject: [PATCH 1/3] Support rastair v0.8.2 --- rastair/0.8.2/Dockerfile | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 rastair/0.8.2/Dockerfile diff --git a/rastair/0.8.2/Dockerfile b/rastair/0.8.2/Dockerfile new file mode 100644 index 00000000..5ba7ff75 --- /dev/null +++ b/rastair/0.8.2/Dockerfile @@ -0,0 +1,32 @@ +FROM rust:1.78-buster AS builder + +# RUN cargo new --bin /app/rastair +WORKDIR /app +RUN git clone --branch v0.8.2 https://bitbucket.org/bsblabludwig/rastair.git +WORKDIR /app/rastair +RUN cargo build --release + +FROM r-base:4.3.2 AS release +# Copy the compiled binary from the build stage +COPY --from=builder /app/rastair/target/release/rastair /usr/local/bin/rastair + +# Install system dependencies +RUN apt update +RUN apt-get -y upgrade + +# Install `ps` command for process monitoring +RUN apt-get -y install procps + +# Install BiocManager for Bioconductor package management +RUN Rscript -e "install.packages('BiocManager', repos='https://cloud.r-project.org')" + +# Install required R and Bioconductor packages +RUN Rscript -e "BiocManager::install('Rsamtools', version = '3.18', ask = FALSE)" \ + -e "if (!requireNamespace('remotes', quietly = TRUE)) install.packages('remotes', repos = 'https://cloud.r-project.org')" \ + -e "remotes::install_version('ggplot2', version = '3.5.1', repos = 'https://cloud.r-project.org')" \ + -e "remotes::install_version('gtable', version = '0.3.6', repos = 'https://cloud.r-project.org')" + +WORKDIR /app + +# Copy R scripts +COPY --from=builder /app/rastair/scripts /app/scripts From 2ba8ca6550795cbe0d38ffe7b6672aeb470d4b55 Mon Sep 17 00:00:00 2001 From: Andrew Gaines Date: Thu, 21 Aug 2025 12:52:38 -0600 Subject: [PATCH 2/3] Labels --- rastair/0.8.2/Dockerfile | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/rastair/0.8.2/Dockerfile b/rastair/0.8.2/Dockerfile index 5ba7ff75..2cb20504 100644 --- a/rastair/0.8.2/Dockerfile +++ b/rastair/0.8.2/Dockerfile @@ -7,6 +7,18 @@ WORKDIR /app/rastair RUN cargo build --release FROM r-base:4.3.2 AS release + +LABEL base_image="rust:1.78-buster, r-base:4.3.2" \ + version="1" \ + software="rastair" \ + software.version="v0.8.2" \ + about.summary="Fast processing of TAPS-based sequencing data" \ + about.home="https://bitbucket.org/bsblabludwig/rastair/src/v0.8.2/" \ + about.documentation="https://bitbucket.org/bsblabludwig/rastair/src/v0.8.2/" \ + about.license="SPDX:GPL-3" \ + about.tags="Methylation, TAPS" \ + maintainer="Andrew Gaines andrew.gaines@watchmakergenomics.com" + # Copy the compiled binary from the build stage COPY --from=builder /app/rastair/target/release/rastair /usr/local/bin/rastair From c1bfb8d50d6bb74a559e74bf0984622164664ce3 Mon Sep 17 00:00:00 2001 From: Andrew Gaines Date: Fri, 22 Aug 2025 09:47:01 -0600 Subject: [PATCH 3/3] Match directory name to version name --- rastair/{0.8.2 => v0.8.2}/Dockerfile | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename rastair/{0.8.2 => v0.8.2}/Dockerfile (100%) diff --git a/rastair/0.8.2/Dockerfile b/rastair/v0.8.2/Dockerfile similarity index 100% rename from rastair/0.8.2/Dockerfile rename to rastair/v0.8.2/Dockerfile