docs(runbook): tg-digest VDS deploy runbook + stack artifacts (task:1311)
Ранбук первого деплоя паттерна sched+worker (модель для yt-digest): стек tg-digest (воркер internal, mem_limit 256m), runtime-регистрация задачи POST /tasks, env-контракт, smoke/verify/rollback, gotchas (сессия Telethon, TZ UTC, timeoutMs). Артефакты: compose source-of-truth, Dockerfile + http_worker.py (черновики для коммита в victor/tg-digest). task:1311 разблокирован (1305 done) -> ready.
This commit is contained in:
21
host-stacks/vds-kzntsv/tg-digest/Dockerfile
Normal file
21
host-stacks/vds-kzntsv/tg-digest/Dockerfile
Normal file
@@ -0,0 +1,21 @@
|
||||
# tg-digest worker — python (telethon + requests) + HTTP-обёртка для sched http-runner.
|
||||
# Файл коммитится в КОРЕНЬ репо victor/tg-digest (рядом http_worker.py).
|
||||
# Build (из чекаута victor/tg-digest, main с d3aefb2):
|
||||
# docker build -t registry.kzntsv.site/tg-digest-worker:<tag> .
|
||||
# Env-контракт — см. ранбук tg-digest-vds-deploy-runbook (все секреты env, pass в контейнере нет).
|
||||
FROM python:3.13-alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY requirements.txt ./
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
COPY src/ src/
|
||||
COPY http_worker.py ./
|
||||
|
||||
RUN mkdir -p /data
|
||||
ENV PYTHONUNBUFFERED=1
|
||||
EXPOSE 8080
|
||||
VOLUME ["/data"]
|
||||
|
||||
CMD ["python", "http_worker.py"]
|
||||
Reference in New Issue
Block a user