Run containerbase on a read-only root file system
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ó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 53/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- docker, typescript
- Lĩnh vực
- devops, infrastructure
Hướng nghiên cứu
Start with test/readonly/test.sh and the ensureWritable and IpcServer.start() paths named in the issue; review #2078, #7424, #7828, and #7842 for related changes. Check how the configured tmp folder behaves when it is unwritable, including EROFS, and extend the read-only tests after #7828 merges. Done means read-only commands work, write commands fail clearly, and the configured tmp folder is covered.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
What would you like containerbase to do?
Track everything containerbase needs to run on a read-only root file system (docker run --read-only --tmpfs /tmp), or with /opt/containerbase mounted as a volume, like Renovate uses it.
Earlier work: #2078 (read-only root file system support), #7424 (database writes on a read-only file system). test/readonly/test.sh covers the current state.
Rules
/tmp(and so the containerbase tmp folder/tmp/containerbase, or the configuredCONTAINERBASE_TMP_DIRfrom #3883) must stay writable; it holds the init state, caches and the IPC socket.- Read-only commands (
list tools, wrappers of initialized tools,install-tool --dry-run) must work. - Commands that need to write (
install-tool) fail early with a clear error instead of hanging or half-installing. - Tools installed at image build time must keep working when
/opt/containerbaseis a volume mount.
Required changes
-
install-toolhangs when the containerbase tmp folder isn't writable:IpcServer.start()waits for astartevent that never fires when the socket can't be created. Check the tmp folder inensureWritablebefore starting the server (#7842). -
The configurable tmp folder (#7828) falls back toNot planned: the tmp folder must always be writable, there's no fallback on/tmp/containerbasewhen the configured folder isn't writable, also onEROFS.EROFS(#7828). - Extend
test/readonly/test.shfor the configured tmp folder (#7885). - Installing git from the prebuild (#7813) broke Renovate's read-only usage with
/opt/containerbaseas a volume mount and was reverted (#7944). #7778 (v15) has to keep git working in that setup, andtest/readonly/test.shshould cover it. - Make
/opt/containerbaseusable as a volume mount: build-time installs in a separate base location, restored on init (#7956, v15).
Drafted by Claude Opus 5.5 (Claude Code) for @viceice.
- Ngôn ngữ chính
- TypeScript
- Star
- 58
- Fork
- 65
- Merge trung bình
- 10 giờ 37 phút
- Pull request đã merge (30 ngày)
- 462
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Không 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 containerbase/base
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
containerbase/base#7891 ·
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 76/100
containerbase/base#7842 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
priority-3-normal tool/dotnet
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 78/100
containerbase/base#5996 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 65/100
containerbase/base#7971 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
containerbase/base#7970 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của containerbase/base
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
awesome-dsh-plugin/awesome-dsh-plugin#9184 ·
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 75/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 85/100
farion1231/cc-switch#8829 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[core-client] Remove unused hand-maintained transport helpers after the definition-table cutoverĐang mởdoc-audit enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/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 85/100