Skip to content

Commit fc70591

Browse files
committed
FIX: fixed deployment issues
1 parent 958f41d commit fc70591

3 files changed

Lines changed: 22 additions & 21 deletions

File tree

docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ services:
3535
<<: *backend-common
3636
depends_on:
3737
redis:
38-
condition: service_started
38+
condition: service_healthy
3939
networks: [ retromol_network ]
4040
# Healthcheck comes from the image's own HEALTHCHECK (hits /api/ready) --
4141
# nothing to override here.
@@ -66,7 +66,7 @@ services:
6666
replicas: ${RQ_WORKER_REPLICAS:-2}
6767
depends_on:
6868
redis:
69-
condition: service_started
69+
condition: service_healthy
7070
networks: [ retromol_network ]
7171
# No fixed container_name -- incompatible with replicas > 1.
7272
# The image's inherited HEALTHCHECK probes an HTTP server this container never

gui/docker/backend.Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ RUN groupadd --gid $USER_GID $USERNAME \
1414
# Switch to /app as working dir
1515
WORKDIR /app
1616

17-
# System deps (git)
18-
RUN apt-get update && apt-get install -y --no-install-recommends build-essential git && rm -rf /var/lib/apt/lists/*
17+
# System deps (git; libxrender1/libxext6/libsm6 are runtime deps of rdkit.Chem.Draw,
18+
# which dlopens X11 libs for 2D rendering even though the container is headless)
19+
RUN apt-get update && apt-get install -y --no-install-recommends build-essential git libxrender1 libxext6 libsm6 && rm -rf /var/lib/apt/lists/*
1920

2021
# Copy env + requirements before env creation for caching
2122
COPY gui/src/server/environment.backend.yml /app/

gui/src/client/package-lock.json

Lines changed: 17 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)