Skip to content

Commit 9f85e14

Browse files
committed
chore: use tools from virtool/tools
1 parent ce29a27 commit 9f85e14

File tree

3 files changed

+5
-28
lines changed

3 files changed

+5
-28
lines changed

.mise.toml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,6 @@ description = "Interactive shell in test container"
2121
depends = ["test-setup"]
2222
run = "./scripts/test-docker.sh --shell"
2323

24-
[tasks.test-rust]
25-
description = "Run Rust tests only"
26-
depends = ["test-setup"]
27-
run = "docker run --rm -v \"$(pwd):/app\" -w /app pathoscope:dev cargo test"
28-
2924
[tasks.test-clean]
3025
description = "Clean up test Docker resources"
3126
run = "docker rmi pathoscope:dev 2>/dev/null || true"

Dockerfile

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,9 @@
1-
FROM debian:bookworm AS bowtie2
2-
WORKDIR /build
3-
RUN apt-get update && apt-get install -y build-essential cmake wget zlib1g-dev
4-
RUN wget https://github.com/BenLangmead/bowtie2/archive/refs/tags/v2.5.4.tar.gz
5-
RUN tar -xvf v2.5.4.tar.gz
6-
WORKDIR bowtie2-2.5.4
7-
RUN make
8-
RUN mkdir /build/bowtie2
9-
RUN cp bowtie2* /build/bowtie2/
10-
11-
FROM debian:bookworm AS pigz
12-
WORKDIR /build
13-
RUN apt-get update && apt-get install -y gcc make wget zlib1g-dev
14-
RUN wget https://zlib.net/pigz/pigz-2.8.tar.gz && \
15-
tar -xzvf pigz-2.8.tar.gz && \
16-
cd pigz-2.8 && \
17-
make
18-
191
FROM python:3.12.3-bookworm AS deps
202
WORKDIR /app
21-
COPY --from=bowtie2 /build/bowtie2/* /usr/local/bin/
22-
COPY --from=ghcr.io/virtool/workflow-tools:2.0.1 /opt/fastqc /opt/fastqc
23-
COPY --from=ghcr.io/virtool/workflow-tools:2.0.1 /opt/hmmer /opt/hmmer
24-
COPY --from=ghcr.io/virtool/workflow-tools:2.0.1 /usr/local/bin/pigz /usr/local/bin/
3+
COPY --from=ghcr.io/virtool/tools:1.0.0 /tools/bowtie2/2.5.4/bowtie* /usr/local/bin/
4+
COPY --from=ghcr.io/virtool/tools:1.0.0 /tools/hmmer/3.2.1 /opt/hmmer
5+
COPY --from=ghcr.io/virtool/tools:1.0.0 /tools/fastqc/0.11.9 /opt/fastqc
6+
COPY --from=ghcr.io/virtool/tools:1.0.0 /tools/pigz/2.8/pigz /usr/local/bin/
257
RUN apt-get update && \
268
apt-get install -y --no-install-recommends default-jre && \
279
rm -rf /var/lib/apt/lists/* && \

scripts/test-docker.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,6 @@ case $MODE in
7474
-v "$(pwd):/app" \
7575
-w /app \
7676
"$IMAGE_NAME" \
77-
bash -c "echo 'Running Rust tests...' && cargo test && echo 'Running Python tests...' && poetry install --no-root && poetry run maturin develop --release && poetry run pytest$PYTEST_ARGS"
77+
bash -c "echo 'Running Python tests...' && poetry install --no-root && poetry run maturin develop --release && poetry run pytest$PYTEST_ARGS"
7878
;;
7979
esac

0 commit comments

Comments
 (0)