nextcloud / nextcloud/app_api

Automatic clean-up of the outdated ExApp Docker images

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

Nobody has claimed this yet.

enhancement priority: low
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
  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:

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.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.