Copying php in a volume make the init and upgrades very slow
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 7.4k
- Forks
- 1.9k
- PR merge metrics
- No merged PRs in 30d
Description
The source code is located at /usr/src/nextcloud in the image and the entrypoint script copy it to /var/www/html.
In a high availability environment, it's necessary to share the /var/www/html between containers so you have to store it on NFS like storages who are not very fast. During initialization or upgrade, the entrypoint copy more that 25k files and it's very very slow.
As I said at https://github.com/nextcloud/helm/issues/10#issuecomment-2372067055, I use a customized image who share only folders who need to be writable by several containers using symlink.
This is potentially a big PR so I would like to know if you are interested before starting.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the image's entrypoint script and how it copies /usr/src/nextcloud to /var/www/html. Compare this with the issue's customized image, which shares only writable folders using symlinks, and confirm the behavior in a high-availability setup using NFS storage. Done means an agreed approach that avoids copying more than 25k files during initialization or upgrades.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, shell
- Domain
- devops, infrastructure
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100