docs: use one volume-naming rule across the Docker volume docs
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 68/100
- Loại issue
- Tài liệu
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- docker, docker-compose
- Lĩnh vực
- documentation
Hướng nghiên cứu
Đọc ba tệp được nêu: docs/DOCKER_CONFIGURATION.md, docs/VOLUMES.md và docs/VOLUME_TESTING.md, sau đó so sánh tên volume trong đó với docker-compose.yml, docker-compose.prod.yml và docker-compose.test.yml. Chỉ cập nhật các tài liệu đó để các khóa Compose được xác định là khóa, lệnh Docker sử dụng tên volume có tiền tố dự án, có cảnh báo về sao lưu và khôi phục, đồng thời sửa các tên và ngày tháng lỗi thời trong ví dụ. Không cần chạy kiểm thử vì đây chỉ là thay đổi tài liệu.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Follow-up to #444 (merged in #459). Part of #403. Docs only: branch from main and open the PR against main.
Problem
#444 documented that the real Docker volume names are <project>_<key> (for example taskflowapi_taskflow-data on the owner's machine). The other volume docs still use bare compose keys or hand-made names, so some commands in them do not match any real volume. The implementation notes on #444 listed three of these; checking them against main found more.
docs/DOCKER_CONFIGURATION.md, "Volume Mounts" (about line 127). "Both environments use named Docker volumes" liststaskflow-dataandtaskflow-logs. The local prod harness (docker-compose.prod.yml) uses the keystaskflow-data-prodandtaskflow-logs-prod, and every real name carries the project prefix. The new "Compose Project Name" section right after the table explains the prefix, so the table now sits above its own correction.docs/VOLUMES.mdmixes three naming schemes.- Bare keys (
taskflow-data,taskflow-logs) indocker volume inspectanddocker volume rm(about lines 140, 250, 257). - Hand-made
taskflow-prod-dataandtaskflow-prod-logsin the manual prod example (about lines 175-214). taskflow-data-prodandtaskflow-logs-prodfor the compose harness (about line 231).- Data-safety point: the backup and restore commands (about lines 275-310) run
docker run -v taskflow-data:/data .... Docker creates a named volume that does not exist, so on a machine where the real volume is<project>_taskflow-datathis command silently mounts a new empty volume. A backup would contain nothing, and a restore would write into a stray volume.
- Bare keys (
docs/VOLUME_TESTING.md. The sampledocker volume inspectoutput has aCreatedAtof2024-11-02T...(stale), and its commands hard-code the owner's project nametaskflowapi_(about lines 34-55, 349 and 368). #444 chose to name no machine-specific project inDOCKER_CONFIGURATION.md.
Change
Edit docs/DOCKER_CONFIGURATION.md, docs/VOLUMES.md and docs/VOLUME_TESTING.md only. One naming rule, applied everywhere:
- When describing compose configuration, use the compose key (
taskflow-data), and say it is a key. - In any
docker volume ...ordocker run -v ...command, use<project>_<key>with<project>as a placeholder, and point to the "Compose Project Name" section anddocker volume ls --filter name=taskflowfor finding the real name. - Name the prod harness keys correctly (
taskflow-data-prod,taskflow-logs-prod). For the manualdocker volume createexample, either keep its own names with a sentence saying it is separate from the harness, or switch it to the harness names; pick one and say which. - Fix the stale
CreatedAtsample, and replace the hard-codedtaskflowapi_inVOLUME_TESTING.md. - Put a one-line warning by the backup and restore commands: use the real, prefixed volume name, because a wrong name creates an empty volume.
- Check each command against
docker-compose.yml,docker-compose.prod.ymlanddocker-compose.test.yml(read-only;docker compose config --volumesis fine). Do not run any command that removes or creates a volume.
Acceptance criteria
- The "Volume Mounts" table in
DOCKER_CONFIGURATION.mdno longer presents bare keys as the Docker volume names, and names the prod harness keys correctly. VOLUMES.mduses one consistent naming rule; its inspect, remove, backup and restore commands use the project-prefixed name, with the backup and restore warning.VOLUME_TESTING.mdhas no stale2024-11-02sample and no hard-codedtaskflowapi_.- No compose file,
.envor volume changes, and nothing suggests deleting a volume. The owner's decision on #444 stands: thetaskflow_*volumes are kept. - Only the three docs files change.
Tests
No tests apply (docs only). Say so in the PR body.
Out of scope
- Adding
name:to the compose files (a later option, documented in #459). - The live API port (
8081in the doc,8080in the gitignored local override) and the baredocker compose up/down -vinci.yml, which is safe today because the runner has no.env. - The test-stack text already fixed in #459.
- Ngôn ngữ chính
- C#
- Star
- 1
- Fork
- 0
- Merge trung bình
- 2 giờ 2 phút
- Pull request đã merge (30 ngày)
- 98
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của nevridge/TaskFlow
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 1 ngày
-
tech-debt
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của nevridge/TaskFlow
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
juandresrodca/AdminForge#54 ·
-
[辞書] C/C++のプリプロセッサ指令名を英字のままにするĐang mở要トリアージ 辞書
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 86/100
yksr-melt/Meltype#1625 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Docs typoĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
MonoGame/docs.monogame.github.io#328 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
space-wizards/RobustToolbox#7197 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation high priority
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
lachydotmcg/capri-desktop#201 ·
Maintainer thường phản hồi trong vòng 1 ngày