Volume path overlap with existing paths inside image
评估
- 难度
- 4/5
- 预计耗时
- 1-2 天
- 新手友好度
- 52/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 冷清
- 技术栈
- docker, php, sqlite
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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
- 主要语言
- Shell
- 星标
- 527
- 派生
- 72
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
LinkStackOrg/linkstack-docker 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
LinkStackOrg/linkstack-docker#170 · 17 条评论 · 11 个 reaction ·
-
Potential information disclosure: runtime Laravel log accessible without authentication in a Docker deployment可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 4/5 3-5 天 新手友好度 35/100
LinkStackOrg/linkstack-docker#168 ·
-
难度 3/5 1-2 天 新手友好度 55/100
LinkStackOrg/linkstack-docker#166 ·
-
难度 2/5 1-3 小时 新手友好度 57/100
LinkStackOrg/linkstack-docker#161 · 1 条评论 ·
-
难度 3/5 1-2 天 新手友好度 48/100
LinkStackOrg/linkstack-docker#160 · 3 条评论 ·
查看 LinkStackOrg/linkstack-docker 的全部 Issue
相似的 Issue
-
lesson-submission pending-review
难度 1/5 1 小时以内 新手友好度 74/100
Ikalus1988/MisakaNet#3899 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
awsdocs/amazon-eks-user-guide#1257 ·
-
deep-dive-feedback
难度 2/5 1-3 小时 新手友好度 78/100
aws-samples/sample-apex-skills#292 ·
维护者通常 1 天内回复
-
fm-spawn: bash 5.2 patsub_replacement turns '&' in a home or project path into the placeholder text未关闭
难度 2/5 1-3 小时 新手友好度 77/100
kunchenguid/firstmate#7786 ·
维护者通常 1 天内回复
-
TLS guide repeats certs/ in the certificate directory可能已有人在做 @maheshrijal 今天认领。 未关闭
难度 1/5 1 小时以内 新手友好度 92/100
prometheus/docs#3156 ·
维护者通常 2 天内回复