nextcloud / nextcloud/docker

Copying php in a volume make the init and upgrades very slow

Open
#2,392 2 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

data persistence k8s/helm/etc
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.