GithubHelp home page GithubHelp logo

Comments (7)

moqmar avatar moqmar commented on August 28, 2024 1

Hm, I think having both possibilities would be great, so it's possible to "just enable diun" with a single-word-label, but also to directly configure it for more advanced options. I'll try to put something together. :)

from diun.

moqmar avatar moqmar commented on August 28, 2024

So, I'd suggest the following labels:

  • -l diun just checks for Config.Image (so, the tag the container has been started with)
  • -l diun='^1\.2\..*' enables watch_repo & checks for the matching tags (like include_tags)
  • -l diun='1.2.*' - why not use wildcards if the tag name is valid except for the wildcard? This is also relevant for include_tags...
  • -l diun=true is like -l diun
  • -l diun=false disables diun explicitly

I'd also add to the watch config section:

watch:
  docker: true # or a path to the Docker socket
  unlabeled-containers: true # also watch unlabeled containers?
  stopped-containers: true # also watch stopped containers?

If that's fine, I can create a pull request for that. ๐Ÿ™ƒ

from diun.

crazy-max avatar crazy-max commented on August 28, 2024

Hi @moqmar,

Thanks for your suggestions!

I would prefer to work with fields. This way we could easily serialize to the same struct as the current static configuration:

  • diun.enable=true/false
  • diun.watch_repo=true/false
  • diun.max_tags=0
  • diun.include_tags.one=^1\.2\..*
  • diun.include_tags.other=latest
  • diun.exclude_tags.foo=^1\.2\..*
  • diun.exclude_tags.bar=latest

diun.include_tags/exclude_tags is a map here.

What do you think? Anyway feel free to open a PR :)

from diun.

crazy-max avatar crazy-max commented on August 28, 2024

@moqmar Of course, I was just stating all the labels and there will be default values.

from diun.

Leopere avatar Leopere commented on August 28, 2024

Glad to see this is still progressing in some way. My biggest concern with running containers is that you don't typically see any update notifications anywhere. You can use things like Ouroboros and the other one I've forgotten but that's assuming that all containers are created equal and sadly this is not the case. Sometimes you just use a container because it's the only one reliable enough to deploy.

At least being notified will make a big difference.

from diun.

crazy-max avatar crazy-max commented on August 28, 2024

@Leopere Done through release 2.0.0

from diun.

Leopere avatar Leopere commented on August 28, 2024

Oh, that's very nice thank you! I'm looking forward to plugging this thing into my entire docker stack!

from diun.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.