chore: carry over lab 1 solution into lab 2 skeleton

Copy the committed lab 1 sources as-is: src/, student-tests/, bench/,
Dockerfile, docker-compose.yml, pyproject.toml, uv.lock,
.python-version, config_example.toml, AGENTS.md, CLAUDE.md, .claude/,
openspec/, .graphifyignore and KNOWN_ISSUES.md. Lab 1 evidence stays
in the lab 1 repository.

Merge the new skeleton files with own sections: Makefile (lab 2
targets plus own run, docker, bench and common targets), .gitignore,
.dockerignore and .env.example. Rename the image to
mtusi-messenger:lab2 and point AGENTS.md at lab 2.

The application is still the in-memory lab 1 implementation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-09-30 22:11:46 +03:00
co-authored by Claude Opus 5.5
parent 65003b6119
commit 7b775a29a9
174 changed files with 19023 additions and 11 deletions
+24
View File
@@ -0,0 +1,24 @@
# Стенд лабы 1: один процесс API, состояние в памяти. Правила —
# .claude/rules/docker.md. Переменные — из .env (шаблон .env.example).
services:
api:
build: .
# тот же тег, что у docker build из README и make run_no_compose
image: mtusi-messenger:lab2
restart: unless-stopped
ports:
# только localhost: стенд учебный
- "127.0.0.1:${APP_OUT_PORT:-8080}:${APP__PORT:-8080}"
environment:
- APP__RUN_MODE=docker
- APP__PORT=${APP__PORT:-8080}
volumes:
# длинная запись: без файла запуск падает, а не создаёт каталог
- type: bind
source: ./config.toml
target: /app/config.toml
read_only: true
bind:
create_host_path: false
# healthcheck — из образа; SIGKILL не раньше, чем через 10 с
stop_grace_period: 10s