Automatic clean-up of the outdated ExApp Docker images
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 196
- Forks
- 26
- Avg merge
- 4d 15h
- Merged PRs (30d)
- 31
Description
Describe why it is important and where it will be useful
Docker images of former versions of the ex-apps fill up the disk space.
Describe your proposed solution
-
Implement a background task for cleaning images with a configurable time interval(measurement in days, value
0means job is disabled, default value=7). -
Optional checkbox "clean images right after update", disabled by default.
Note: Options should be located here: http://nextcloud.local/index.php/settings/admin/app_api
Relevant API endpoint would be: https://docs.docker.com/reference/api/engine/version/v1.47/#tag/Image/operation/ImagePrune
Describe alternatives you've considered, if relevant
No response
Additional context
Additional related changes to be done in other repos in a separate PRs:
- Allow images/prune path in the haproxy config in https://github.com/nextcloud/docker-socket-proxy
- Add a high level API and allow the prune path in https://github.com/nextcloud/HaRP
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 at the Nextcloud admin AppAPI settings page and review the Docker Engine v1.47 ImagePrune endpoint. Define how the configurable interval and optional post-update cleanup should be represented and triggered, including the disabled value of 0. Done means outdated ExApp images can be cleaned on the configured schedule and optionally after updates, with both options exposed at the specified settings location.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, php
- Domain
- backend, devops
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100