Commit Graph

16 Commits

Author SHA1 Message Date
tdurieux 06a098fba7 perf(deploy): faster builds and zero-downtime streamer rollover
- Multi-stage Dockerfile with BuildKit npm cache mounts and a separate
  prod-deps stage so source edits don't reinstall or prune.
- Tighter .dockerignore to shrink build context.
- Healthchecks: add start_period and tighten interval/retries so
  containers report healthy as soon as the process is actually ready
  instead of after a full polling interval.
- Move recoverStuckPreparing() off the startup critical path; the
  recovery sweep now runs in the background after app.listen.
- depends_on uses condition: service_healthy and the obsolete
  compose 'version' key is gone.
- New scripts/build.sh + scripts/deploy.sh: deploy.sh builds, exits
  early if the image is unchanged, runs a blue/green streamer swap
  (scale to 2N, wait healthy in parallel, drop olds), then recreates
  the API with --no-deps to avoid compose's depends_on re-poll.
2026-05-06 13:38:19 +03:00
tdurieux 1dde5dc308 docker: multi-stage build with alpine runtime
Split into builder (node:21-slim, full deps + tsc/gulp) and runtime
(node:21-alpine, production deps only). Drops ~hundreds of MB from
the published image and removes dev tooling from the runtime layer.
2026-05-05 00:52:55 +03:00
Thomas Durieux 655ae92c4c Remove OpenTelemetry tracing infrastructure (#662) 2026-04-15 04:39:08 +02:00
tdurieux c940c98b6e fix: add missing gulpfile.js 2024-04-05 12:30:47 +01:00
tdurieux 4d12641c7e feat: introduce streamers that handle the stream and anonymization from github 2024-04-03 11:13:01 +01:00
tdurieux 87c7e8c470 chore: update node version 2024-04-01 10:27:18 +01:00
tdurieux 8505daceaa chore: remove pm2 install 2024-03-28 10:14:00 +00:00
tdurieux 0caf786c9c feat: adds opentelemetry support 2024-03-27 11:18:13 +00:00
tdurieux e24d1b4630 update dependencies & remove google analytics 2023-06-20 09:58:25 +02:00
tdurieux 99f837c3cf fix: fix and optimize Dockerfile 2023-02-13 14:07:57 +01:00
tdurieux 3ab9b0c7a4 fix(#166): fix docker build 2023-02-13 08:15:55 +01:00
tdurieux 0f8572fe01 chore: uses pm2 to start Anonymous GitHub in docker 2021-09-07 08:39:15 +02:00
tdurieux a3a8667d6d chore: improve docker image 2021-09-06 11:57:37 +02:00
tdurieux cd9de704db fix: update dockerfile to the new architecture 2021-08-13 14:05:48 +02:00
tdurieux a2d0f0b212 v2 wip 2021-03-16 11:23:16 +01:00
tdurieux a9f206ae47 start v2 2020-06-01 09:42:11 +02:00