Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

feat: zero downtime ngninx #181

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
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
12 changes: 12 additions & 0 deletions .kontinuous/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,18 @@ app:
~needs: [build-app]
imagePackage: app
containerPort: 8080
livenessProbe:
httpGet:
path: /live
port: 8080
readinessProbe:
httpGet:
path: /ready
port: 8080
lifecycle:
preStop:
exec:
command: ["/pre-stop.sh", "10"]

jobs:
runs:
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ RUN if [ -z "$PRODUCTION" ]; then \
RUN yarn fetch-tools production && yarn cache clean

# Production image, copy all the files and run next
FROM ghcr.io/socialgouv/docker/nginx:sha-1d70757 AS runner
# FROM ghcr.io/socialgouv/docker/nginx:sha-1d70757 AS runner
FROM ghcr.io/socialgouv/docker/nginx:feat-nginx-kube-zero-downtime AS runner

COPY --from=builder /app/out /usr/share/nginx/html

Expand Down
Loading