Skip to content

Rastair #604

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 22, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions rastair/v0.8.2/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
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

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

# 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