Automatic clean-up of the outdated ExApp Docker images
Maintainers usually reply within 1 day
Nobody has claimed this yet.
- #837 by @aliz71 — closed without merging
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
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.
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
- Dominant language
- PHP
- Stars
- 202
- Forks
- 30
- Avg merge
- 3d 20h
- Merged PRs (30d)
- 24
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing 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.
More from nextcloud/app_api
-
bug docker
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
deploy discussion
Difficulty 5/5 Over a week Newbie friendliness 20/100
nextcloud/app_api#1236 · 1 reaction ·
Maintainers usually reply within 1 day
-
deploy docker enhancement
Difficulty 4/5 3-5 days Newbie friendliness 48/100
Maintainers usually reply within 1 day
-
bug deploy docker
Difficulty 4/5 3-5 days Newbie friendliness 42/100
Maintainers usually reply within 1 day
All issues in nextcloud/app_api
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
mailcow/mailcow-dockerized#7725 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 76/100
mcallegari/qlcplus-docs#147 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
Adyen/adyen-magento2#3453 ·
Maintainers usually reply within 8 days
-
component/media domain/discovery
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
simplesamlphp/simplesamlphp#2695 ·