Volume path overlap with existing paths inside image
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 52/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- docker, php, sqlite
- Lĩnh vực
- database, infrastructure
Hướng nghiên cứu
Read the container configuration and the LinkStack application setup to find how /htdocs is mounted and where the SQLite database is configured or seeded. Check the existing volume definitions and startup process first. Done means the database can use its own configurable location, is created at container start, and only /htdocs/storage/app/public needs to persist uploaded files.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
The /htdocs webroot inside the container is currently recommended to be configured as volume. However since it contains files required for the application to function, it causes issues with very common use-cases which override the volume content at mount, leaving an empty directory.
The following use-cases are currently impossible without workarounds (see below):
- Bind volumes with Docker/Podman/Compose
- Kubernetes volumes
A workaround is to copy the original content of the image in the volume with an init container, prior to the main container starting. But this rather hacky and not ideal.
The following changes would be required at minimum:
- Allow defining the location of the SQLite database file: that way it can be configured to be read from its own dedicated (sub-)directory and configured as volume
- I see a non-empty database is already present on the image's FS. If it is somehow seeded and built into the app that's also bad practice and instead it should be created from scratch at container start
- Only mount
/htdocs/storage/app/publicas a volume to persist file uploads: AFAIK the rest of the webroot doesn't need to be persisted
- Ngôn ngữ chính
- Shell
- Star
- 527
- Fork
- 72
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- 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 LinkStackOrg/linkstack-docker
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
LinkStackOrg/linkstack-docker#170 · 8 reaction ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
LinkStackOrg/linkstack-docker#168 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
LinkStackOrg/linkstack-docker#166 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 57/100
LinkStackOrg/linkstack-docker#161 · 1 bình luận ·
-
github package out of dateĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
LinkStackOrg/linkstack-docker#160 · 3 bình luận ·
Tất cả issue của LinkStackOrg/linkstack-docker
Issue tương tự
-
bug: `curl NAME` exports an unquoted, uninterpolated command that is not runnableCó thể đã có người làm @dannyward630 đã nhận hôm nay. Đang mởbug good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
yunaremaia/git-api#61 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Update nwg-panel to 0.12.3Có thể đã có người làm @zen0bit đã nhận hôm nay. Đang mởpackage-update
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/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 82/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 76/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 78/100
alunduil/alunduil-chezmoi#963 ·
Maintainer thường phản hồi trong vòng 1 ngày