nextcloud / nextcloud/cookbook

Add intermediate docker containers: Speed up builds

Open
#826 0 comments 1 reaction 1 assignee View on GitHub

@christianlupus is already working on this.

Since Jul 28, 2022.

enhancement meta and development
Dominant language
HTML
Stars
641
Forks
113
Avg merge
21h 31m
Merged PRs (30d)
26

Description

Currently, only one caching container is used for all CI builds. Due to the matrix quite some work is done during the building. There is the suggestion to use multiple cache stages to enhance this:

The first stage consists only of the PHP container with all dependencies installed/built. That should be 3 containers for the different PHP versions.

Secondly, for each required combination of (PHP version, NC version, DB type) a container is generated that bases on the 1st stage cached ones and contains the NC server data (including submodule) and a DB dump to be used for plain installation as well as the vanilla data folder. An appropriate entrypoint will initialize the DB according to an env variable before the DB can be used.
The restoration can be sped up by disabling temporarily all security measurements as no concurrent access is possible.

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.