Skip to content

v0.4.0 dev#6

Merged
MattBixley merged 34 commits intomainfrom
v0.4.0-dev
Apr 14, 2026
Merged

v0.4.0 dev#6
MattBixley merged 34 commits intomainfrom
v0.4.0-dev

Conversation

@jen-reeve
Copy link
Copy Markdown
Collaborator

Updating and fixing the installs to avoid the failing library install issue that popped up during the March 2026 workshop.

Major changes:

  • set version of base image
  • added fastp
  • removed salmon
  • added load/version checks for most software installs (not subread)

@jen-reeve jen-reeve requested a review from MattBixley April 14, 2026 01:31
@jen-reeve jen-reeve self-assigned this Apr 14, 2026
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the Dockerfile base image to rocker/geospatial:4.5.2, replaces apt-get with apt, and adds version verification for several bioinformatics tools. It also installs fastp, removes salmon and QualiMap, adds R package verification, and updates the application image version in the job submission template. Feedback recommends reverting to apt-get for stability, using HTTPS and the correct version for the fastp download, and purging build-time dependencies like cmake to optimize image size.

Comment thread docker/Dockerfile
Comment on lines +144 to +147
RUN wget http://opengene.org/fastp/fastp.1.3.2 && \
chmod a+x fastp.1.3.2 && \
mv fastp.1.3.2 /usr/local/bin/fastp && \
fastp --version
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

security-high high

There are two issues here:

  1. Security: The download uses http instead of https, making it vulnerable to man-in-the-middle attacks.
  2. Correctness: The version 1.3.2 appears to be a typo. The fastp tool typically uses 0.x.y versioning (e.g., 0.23.4).

It is safer and more reliable to download the binary from the official GitHub releases using HTTPS.

RUN wget https://github.com/OpenGene/fastp/releases/download/v0.23.4/fastp && \
    chmod a+x fastp && \
    mv fastp /usr/local/bin/fastp && \
    fastp --version

Comment thread docker/Dockerfile
libcurl4-openssl-dev \
libssl-dev \
default-jre \
RUN apt update && DEBIAN_FRONTEND=noninteractive apt install -y \
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

It is recommended to use apt-get instead of apt in Dockerfiles. apt is intended for interactive use and its interface is not considered stable for scripting, which can lead to warnings or unexpected behavior in automated builds. Additionally, apt-get is the standard practice recommended by Docker documentation.

RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \

Comment thread docker/Dockerfile
Comment on lines +39 to +40
RUN apt update && \
apt install -y --no-install-recommends \
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Consistent with the previous block, apt-get should be used instead of apt for stability in non-interactive environments.

RUN apt-get update && \
    apt-get install -y --no-install-recommends \

Comment thread docker/Dockerfile
Comment on lines +133 to +134
apt-get clean && rm -rf /var/lib/apt/lists/* && \
bamtools --version
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Since cmake is only required to build bamtools and is not used elsewhere in the image, it should be purged after the installation to reduce the final image size. Also, ensure consistency by using apt-get if the rest of the file is reverted.

    apt-get purge -y --auto-remove cmake && \
    apt-get clean && rm -rf /var/lib/apt/lists/* && \
    bamtools --version

@MattBixley
Copy link
Copy Markdown
Collaborator

looks good, fastp looks correct

@MattBixley MattBixley merged commit 9aa3665 into main Apr 14, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants