Volume 15 · Infrastructure & Deployment
เล่มนี้สังเคราะห์วิธี deploy ของทั้ง 25 repository ที่มีโค้ด — ไม่ re-derive Dockerfile ใหม่ (อยู่ใน index.md ของแต่ละ repo ใน Vol 3-9 แล้ว) แต่ตอบคำถามระดับ platform: repo ไหน deploy ด้วยอะไร ทำไม branch-per-environment pattern เสี่ยง และ infra debt ไหนกระทบหลาย repo พร้อมกัน
เล่มนี้คืออะไร
| บท | หัวข้อ | คำถามที่ตอบ |
|---|---|---|
| 15.1 | Deployment inventory | ทุก repo deploy ด้วยกลไกอะไร (Dockerfile/compose/static build/ไม่มีเลย) |
| 15.2 | Environments & branches | branch-per-environment pattern ทำงานอย่างไร เสี่ยงตรงไหน |
| 15.3 | Scorecard | infra debt — EOL runtime, ไม่มี health check/monitoring |
ตัวเลขที่ควรจำ
| ตัวเลข | ค่า | ที่มา |
|---|---|---|
| Repo ที่มี Dockerfile | 19 จาก 25 | ดู 15.1 |
| Repo ที่ไม่มี Dockerfile/deploy artifact ใดในโค้ด (UNVERIFIED) | 3 | sso-api, meeting-vtrc-api (ไม่มี Dockerfile แต่มี compose), vtrc-ocr-api |
| Repo ที่ยัง build บน Node runtime EOL แล้ว | อย่างน้อย 3 | cu-central-api (node:12.18.3, EOL เม.ย. 2022), 2way-batch/2way-line-service (node:16-alpine, EOL เม.ย. 2024), job-scheduler-api (node:16-alpine) |
| Branch canonical ที่ไม่ตรงกับ default branch | 15+ จาก 25 repo | ดู Canonical Truths ตาราง branch topology |
| CI system ที่พบ | 2 แบบ (Bitbucket Pipelines, ไม่มี CI เลยในหลาย repo) | ดู 15.1 |
หลักการอ่านเล่มนี้
ทุกข้อเท็จจริงระดับ repo เดี่ยวมาจาก "Deploy artifact"/"Entry point และพอร์ต" ใน index.md ของ Vol 3-9 — citation ชี้กลับไปที่ต้นทางเสมอ จุดที่ไม่มีหลักฐาน (ไม่มี Dockerfile, ไม่มี CI file ใน repo) ระบุเป็น UNVERIFIED ตรงตามที่เอกสารต้นทางเขียนไว้ ไม่เดาเติม
สิ่งที่เล่มนี้ไม่ cover
- Network topology จริงของ production (VPC, load balancer, firewall rule) — ไม่มีหลักฐานจาก source code เพียงพอในรอบนี้
- Kubernetes manifest (ไม่พบใน repo ใดที่สำรวจ — ทุก repo ที่ deploy ด้วย container ใช้ Docker Compose หรือ Dockerfile ตรง ไม่มี Helm chart/K8s YAML)
- CI/CD pipeline configuration แบบละเอียด (step-by-step) — มีแค่ pipeline system ที่ใช้ (ดู 15.1)
อ้างอิงข้าม
- Canonical Truths — ตาราง branch topology เต็ม
- Volume 3 · Legacy Core
- Volume 6 · Domain Microservices
- Volume 16 · Operational Runbooks — runbook ที่อ้างอิง infra debt จากเล่มนี้