Skip to content

Commit b10f31d

Browse files
Drops drain time 1s in dev
1 parent c436604 commit b10f31d

2 files changed

Lines changed: 16 additions & 6 deletions

File tree

Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ RUN mkdir -p /opt/app \
3434
RUN apt-get update -qq
3535

3636
# Install standard packages from the Debian repository
37-
RUN apt-get install -y \
38-
curl \
39-
git \
40-
gpg \
41-
libpq-dev \
42-
libyaml-dev
37+
RUN apt-get install -y --no-install-recommends \
38+
curl \
39+
git \
40+
gpg \
41+
libpq-dev \
42+
libyaml-dev
4343

4444
# Install Node.js and Yarn from their own repositories
4545

docker-compose.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ services:
88
condition: service_started
99
worker:
1010
condition: service_started
11+
environment:
12+
- PUMA_DELAYED_STOP_DRAIN_SECONDS=1
1113
healthcheck:
1214
test: curl -sf http://localhost:3000/health/default
1315
interval: 15s
@@ -33,6 +35,14 @@ services:
3335
depends_on:
3436
- db
3537
- selenium
38+
environment:
39+
- GOOD_JOB_PROBE_PORT=7001
40+
healthcheck:
41+
test: curl localhost:7001/status/started
42+
interval: 1m
43+
timeout: 5s
44+
retries: 5
45+
start_period: 30s
3646
ports: []
3747

3848
db:

0 commit comments

Comments
 (0)