Automatic clean-up of the outdated ExApp Docker images

Open
#667 0 comments 0 reactions 0 assignees View on GitHub

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
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
docker, php
Domain
backend, devops

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

enhancement priority: low
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
  1. Implement a background task for cleaning images with a configurable time interval(measurement in days, value 0 means job is disabled, default value=7).

  2. 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:

Dominant language
PHP
Stars
202
Forks
30
Avg merge
3d 20h
Merged PRs (30d)
24

Getting set up

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.

More from nextcloud/app_api

All issues in nextcloud/app_api

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.