Skip to content

[FR] Using Docker labels like WUD to add container to watched list and support for update links #150

@UtkarshVerma

Description

@UtkarshVerma

Is your feature request related to a problem? Please describe.
I have a lot of containers on my machine and I only want Cup to watch containers that I explicitly specify in my compose files. With WUD, it supports labels so I use them because it keeps the config distributed which makes it easy to understand for locality purposes. Also, would it be possible to add a link to the container updates? For UX purposes, I always link to the release notes in WUD which saves me a few clicks when I am updating containers. It is a huge help when there are multiple updates.

Describe the solution you'd like
Since we already have access to the Docker socket, we could implement support for container config using Docker labels and only watch updates for these containers. These are the labels which WUD supports:
https://getwud.github.io/wud/#/configuration/watchers/?id=labels

I rely on the following labels:

  • wud.watch
  • wud.link.template: https://github.com/sergi0g/cup/releases/tag/v$${major}.$${minor}.$${patch}
  • wud.display.name and wud.display.icon: Optional, but makes it look nicer, especially with selfh.st/icons.

Describe alternatives you've considered
WUD

Additional context

Image

This is how the link is rendered.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions