nextcloud / nextcloud/cookbook
Add intermediate docker containers: Speed up builds
@christianlupus is already working on this.
Since Jul 28, 2022.
- 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
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.
Assessment
This issue has not been assessed yet.