Skip to content
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

Use micromamba docker image for runner #76

Merged
merged 1 commit into from
Jan 22, 2025
Merged
Show file tree
Hide file tree
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
16 changes: 8 additions & 8 deletions runner/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
#FROM mambaorg/micromamba:1.5.8-jammy
FROM continuumio/miniconda3
FROM ghcr.io/mamba-org/micromamba:debian11-slim

LABEL org.opencontainers.image.source=https://github.com/ssciwr/predicTCR
LABEL org.opencontainers.image.description="predicTCR runner image"
LABEL org.opencontainers.image.licenses=MIT

COPY env.yaml /tmp/env.yaml
COPY --chown=$MAMBA_USER:$MAMBA_USER env.yaml /tmp/env.yaml

RUN conda env create -f /tmp/env.yaml
RUN micromamba install -y -n base -f /tmp/env.yaml && \
micromamba clean --all --yes

WORKDIR /app
ARG MAMBA_DOCKERFILE_ACTIVATE=1

COPY . .
WORKDIR /app

SHELL ["conda", "run", "-n", "predictcr", "/bin/bash", "-c"]
COPY --chown=$MAMBA_USER:$MAMBA_USER . .

RUN python -m pip install . && rm -rf *

ENTRYPOINT ["conda", "run", "--no-capture-output", "-n", "predictcr", "predicTCR_runner"]
ENTRYPOINT ["/usr/local/bin/_entrypoint.sh", "predicTCR_runner"]
6 changes: 3 additions & 3 deletions runner/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ To update to the latest runner docker images: `docker compose pull && docker com
To test locally using Docker, you can directly talk to the backend service (this works because both docker-compose files use the same docker network)

```
PREDICTCR_RUNNER_API_URL="http://backend:8080/api"
PREDICTCR_RUNNER_JWT_TOKEN="" # you need to generate this using the admin page of your local instance
PREDICTCR_RUNNER_LOG_LEVEL=DEBUG
PREDICTCR_API_URL="http://backend:8080/api"
PREDICTCR_JWT_TOKEN="" # you need to generate this using the admin page of your local instance
PREDICTCR_LOG_LEVEL=DEBUG
```
4 changes: 1 addition & 3 deletions runner/env.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: predictcr
name: base
channels:
- conda-forge
- r
- pkgs/r
- bioconda
dependencies:
- bioconductor-glmgampoi
Expand Down
Loading