Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
1 change: 1 addition & 0 deletions Program_Licenses.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ The licenses of the open-source software that is contained in these Docker image
| shigatyper | non-standard license see --> | https://github.com/CFSAN-Biostatistics/shigatyper/blob/master/LICENSE |
| ShigEiFinder | GNU GPLv3 | https://github.com/LanLab/ShigEiFinder/blob/main/LICENSE |
| Shovill | GNU GPLv3 | https://github.com/tseemann/shovill/blob/master/LICENSE |
| simplot-cl | GNU GPLv3 | https://github.com/hodcroftlab/simplot-cl/blob/main/LICENSE.txt |
| SISTR | Apache 2.0 | https://github.com/phac-nml/sistr_cmd/blob/master/LICENSE |
| SKA | MIT | https://github.com/simonrharris/SKA/blob/master/LICENSE |
| SKA2 | Apache 2.0 | https://github.com/bacpop/ska.rust/blob/master/LICENSE |
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@ To learn more about the docker pull rate limits and the open source software pro
| [ShigEiFinder](https://hub.docker.com/r/staphb/shigeifinder/) <br/> [![docker pulls](https://badgen.net/docker/pulls/staphb/shigeifinder)](https://hub.docker.com/r/staphb/shigeifinder) | <details><summary>Click to see all versions</summary> <ul><li>[1.3.2](./build-files/shigeifinder/1.3.2/)</li><li>[1.3.3](./build-files/shigeifinder/1.3.3/)</li><li>[1.3.5](./build-files/shigeifinder/1.3.5/)</li></ul> </details> | https://github.com/LanLab/ShigEiFinder |
| [Shovill](https://hub.docker.com/r/staphb/shovill/) <br/> [![docker pulls](https://badgen.net/docker/pulls/staphb/shovill)](https://hub.docker.com/r/staphb/shovill) | <details><summary>Click to see all versions</summary> <ul><li>[1.0.4](./build-files/shovill/1.0.4/)</li><li>[1.1.0](./build-files/shovill/1.1.0/)</li><li>[1.4.2](./build-files/shovill/1.4.2/)</li></ul> </details> | https://github.com/tseemann/shovill |
| [Shovill-se](https://hub.docker.com/r/staphb/shovill-se/) <br/> [![docker pulls](https://badgen.net/docker/pulls/staphb/shovill-se)](https://hub.docker.com/r/staphb/shovill-se) | <details><summary>Click to see all versions</summary> <ul><li>[1.1.0](./build-files/shovill-se/1.1.0/)</li></ul> </details> | https://github.com/rpetit3/shovill/tree/v1.1.0se |
| [simplot-cl](https://hub.docker.com/r/staphb/simplot-cl/) <br/> [![docker pulls](https://badgen.net/docker/pulls/staphb/simplot-cl)](https://hub.docker.com/r/staphb/simplot-cl) | <details><summary>Click to see all versions</summary> <ul><li>[1.0.3](./build-files/simplot-cl/1.0.3/)</li></ul> </details> | https://github.com/hodcroftlab/simplot-cl |
| [SISTR](https://hub.docker.com/r/staphb/sistr/) <br/> [![docker pulls](https://badgen.net/docker/pulls/staphb/sistr)](https://hub.docker.com/r/staphb/sistr) | <details><summary>Click to see all versions</summary> <ul><li>[1.0.2](./build-files/sistr/1.0.2/)</li><li>[1.1.1](./build-files/sistr/1.1.1/)</li><li>[1.1.2](./build-files/sistr/1.1.2/)</li><li>[1.1.3](./build-files/sistr/1.1.3/)</li></ul> </details> | https://github.com/phac-nml/sistr_cmd |
| [SKA](https://hub.docker.com/r/staphb/ska/) <br/> [![docker pulls](https://badgen.net/docker/pulls/staphb/ska)](https://hub.docker.com/r/staphb/ska) | <details><summary>Click to see all versions</summary> <ul><li>[1.0](./build-files/ska/1.0/)</li></ul> </details> | https://github.com/simonrharris/SKA |
| [SKA2](https://hub.docker.com/r/staphb/ska2/) <br/> [![docker pulls](https://badgen.net/docker/pulls/staphb/ska2)](https://hub.docker.com/r/staphb/ska2) | <details><summary>Click to see all versions</summary> <ul><li>[0.3.6](./build-files/ska2/0.3.6/)</li><li>[0.3.7](./build-files/ska2/0.3.7/)</li><li>[0.3.10](./build-files/ska2/0.3.10/)</li><li>[0.4.0](./build-files/ska2/0.4.0/)</li><li>[0.4.1](./build-files/ska2/0.4.1/)</li><li>[0.5.0](./build-files/ska2/0.5.0/)</li><li>[0.5.1](./build-files/ska2/0.5.1/)</li></ul> </details> | https://github.com/bacpop/ska.rust |
Expand Down
79 changes: 79 additions & 0 deletions build-files/simplot-cl/1.0.3/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
FROM mambaorg/micromamba:2.5.0-ubuntu24.04 AS app

ARG SIMPLOT_CL_VER="1.0.3"

USER root

WORKDIR /

LABEL base.image="mambaorg/micromamba:2.5.0-ubuntu24.04"
LABEL dockerfile.version="1"
LABEL software="simplot-cl"
LABEL software.version="${SIMPLOT_CL_VER}"
LABEL description="A Command-Line Similarity Plot Generator"
LABEL website="https://github.com/hodcroftlab/simplot-cl/"
LABEL license="https://github.com/hodcroftlab/simplot-cl/blob/main/LICENSE.txt"
LABEL maintainer="Raheel Ahmed"
LABEL maintainer.email="raheelsyedahmed@gmail.com"

# Standard packages for downloading source code
RUN apt-get update && apt-get install -y --no-install-recommends \
wget \
ca-certificates \
procps && \
apt-get autoclean && rm -rf /var/lib/apt/lists/*

# Decompress source code in /opt and llink /opt/simplot-cl-1.0.3 to /usr/local/bin for discovery in python path.
WORKDIR /opt

RUN wget -q https://github.com/hodcroftlab/simplot-cl/archive/refs/tags/v${SIMPLOT_CL_VER}.tar.gz && \
tar -xzf v${SIMPLOT_CL_VER}.tar.gz && \
rm v${SIMPLOT_CL_VER}.tar.gz && \
chmod +x /opt/simplot-cl-1.0.3/simplot.py && \
ln -s /opt/simplot-cl-${SIMPLOT_CL_VER}/simplot.py /usr/local/bin/simplot.py

# Install from environment available in source code folder.
RUN micromamba install --name base -f /opt/simplot-cl-${SIMPLOT_CL_VER}/environment.yml -y && \
micromamba clean -a -f -y && \
mkdir /data

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

From https://github.com/hodcroftlab/simplot-cl/blob/main/environment.yml, it looks like the micromamba environment is very simple. It looks like it just consists of python packages and mafft. This image would be more stable and smaller without micromamba.

Could you try using the ubuntu:noble base?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Sure, I'll give it a try, and I'll let you know if I run into any issues.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I updated the base to python 3.13.12-slim. File size went from 2.07 GB to 643.58 MB. Ubuntu noble was giving me some issues with pip.

# Add micromamba packages to path and set locale.
ENV PATH="/opt/conda/bin/:${PATH}" \
LC_ALL=C.UTF-8

WORKDIR /data

CMD [ "simplot.py", "-h" ]



FROM app AS test

ARG SIMPLOT_CL_VER="1.0.3"

# List micromamba dependencies
RUN micromamba list -n base

WORKDIR /test


# Run simplot help command
RUN simplot.py -h

# Generate simplots for queries listed through -q, using all other sequences in the supplied FASTA file as a reference.
RUN simplot.py \
-s /opt/simplot-cl-${SIMPLOT_CL_VER}/demo_data/query_alignment.fasta \
-q OP137282.1 JX274981.1 \
-ws 150 \
-ss 50 \
-p simplots \
--no-align

# Generate simplots for all sequences in the supplied FASTA file using all sequences in the reference FASTA as references.
RUN simplot.py \
-s /opt/simplot-cl-${SIMPLOT_CL_VER}/demo_data/query_alignment.fasta \
-r /opt/simplot-cl-${SIMPLOT_CL_VER}/demo_data/reference_alignment.fasta \
-ws 200 \
-ss 100 \
-p simplots \
--no-align
Loading
Loading