Skip to content

Commit 57f6417

Browse files
authored
Merge pull request #76 from ssciwr/fix_74_use_micromamba_docker_image
Use micromamba docker image for runner
2 parents 857a85a + bbb1bd4 commit 57f6417

File tree

3 files changed

+12
-14
lines changed

3 files changed

+12
-14
lines changed

runner/Dockerfile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
#FROM mambaorg/micromamba:1.5.8-jammy
2-
FROM continuumio/miniconda3
1+
FROM ghcr.io/mamba-org/micromamba:debian11-slim
32

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

8-
COPY env.yaml /tmp/env.yaml
7+
COPY --chown=$MAMBA_USER:$MAMBA_USER env.yaml /tmp/env.yaml
98

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

12-
WORKDIR /app
12+
ARG MAMBA_DOCKERFILE_ACTIVATE=1
1313

14-
COPY . .
14+
WORKDIR /app
1515

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

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

20-
ENTRYPOINT ["conda", "run", "--no-capture-output", "-n", "predictcr", "predicTCR_runner"]
20+
ENTRYPOINT ["/usr/local/bin/_entrypoint.sh", "predicTCR_runner"]

runner/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ To update to the latest runner docker images: `docker compose pull && docker com
4343
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)
4444

4545
```
46-
PREDICTCR_RUNNER_API_URL="http://backend:8080/api"
47-
PREDICTCR_RUNNER_JWT_TOKEN="" # you need to generate this using the admin page of your local instance
48-
PREDICTCR_RUNNER_LOG_LEVEL=DEBUG
46+
PREDICTCR_API_URL="http://backend:8080/api"
47+
PREDICTCR_JWT_TOKEN="" # you need to generate this using the admin page of your local instance
48+
PREDICTCR_LOG_LEVEL=DEBUG
4949
```

runner/env.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
name: predictcr
1+
name: base
22
channels:
33
- conda-forge
4-
- r
5-
- pkgs/r
64
- bioconda
75
dependencies:
86
- bioconductor-glmgampoi

0 commit comments

Comments
 (0)